diff mbox series

regmap: Fix unused warning

Message ID bc189f3905c723a2e3cfb58f1bc2f20274b981a3.1509775537.git.baolin.wang@linaro.org
State Accepted
Commit c077fadf4d1e05bcdd7ddb07758cbd8acf0033f6
Headers show
Series regmap: Fix unused warning | expand

Commit Message

(Exiting) Baolin Wang Nov. 4, 2017, 6:08 a.m. UTC
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(-)

-- 
1.9.1
diff mbox series

Patch

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) ||