[PATCH] regmap: Fix unused warning
From: Baolin Wang
Date: Sat Nov 04 2017 - 02:09:54 EST
This patch fixes the warning of label 'err_map' defined but not used.
Signed-off-by: Baolin Wang <baolin.wang@xxxxxxxxxx>
---
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