From: Baolin Wang <baolin.wang@linaro.org>
To: broonie@kernel.org
Cc: arnd@arndb.de, linux-kernel@vger.kernel.org, baolin.wang@linaro.org
Subject: [PATCH] regmap: Fix unused warning
Date: Sat, 4 Nov 2017 14:08:23 +0800 [thread overview]
Message-ID: <bc189f3905c723a2e3cfb58f1bc2f20274b981a3.1509775537.git.baolin.wang@linaro.org> (raw)
This patch fixes the warning of label 'err_map' defined but not used.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
---
drivers/base/regmap/regmap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index bfe2f25..8d516a9 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -699,7 +699,7 @@ struct regmap *__regmap_init(struct device *dev,
map->lock_arg = map;
#else
ret = -EINVAL;
- goto err;
+ goto err_map;
#endif
} else {
if ((bus && bus->fast_io) ||
--
1.9.1
next reply other threads:[~2017-11-04 6:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-04 6:08 Baolin Wang [this message]
2017-11-06 11:38 ` Applied "regmap: Fix unused warning" to the regmap tree Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bc189f3905c723a2e3cfb58f1bc2f20274b981a3.1509775537.git.baolin.wang@linaro.org \
--to=baolin.wang@linaro.org \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®