[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <bc189f3905c723a2e3cfb58f1bc2f20274b981a3.1509775537.git.baolin.wang@linaro.org>
Date: Sat, 4 Nov 2017 14:08:23 +0800
From: Baolin Wang <baolin.wang@...aro.org>
To: broonie@...nel.org
Cc: arnd@...db.de, linux-kernel@...r.kernel.org, baolin.wang@...aro.org
Subject: [PATCH] regmap: Fix unused warning
This patch fixes the warning of label 'err_map' defined but not used.
Signed-off-by: Baolin Wang <baolin.wang@...aro.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
Powered by blists - more mailing lists