summaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2017-11-04 14:08:23 +0800
committerMark Brown <broonie@kernel.org>2017-11-06 11:29:09 +0000
commitc077fadf4d1e05bcdd7ddb07758cbd8acf0033f6 (patch)
tree7d440a0e0dbbde963c5650ba676093b5e96a1cd1 /drivers/base/regmap
parentca0db18da26a47f824fe79e6870ad19470a45525 (diff)
downloadtalos-op-linux-c077fadf4d1e05bcdd7ddb07758cbd8acf0033f6.tar.gz
talos-op-linux-c077fadf4d1e05bcdd7ddb07758cbd8acf0033f6.zip
regmap: Fix unused warning
This patch fixes the warning of label 'err_map' defined but not used. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index bfe2f250d011..8d516a9bfc01 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) ||
OpenPOWER on IntegriCloud