]> Git Repo - linux.git/commitdiff
regmap: Fix unused warning
authorBaolin Wang <[email protected]>
Sat, 4 Nov 2017 06:08:23 +0000 (14:08 +0800)
committerMark Brown <[email protected]>
Mon, 6 Nov 2017 11:29:09 +0000 (11:29 +0000)
This patch fixes the warning of label 'err_map' defined but not used.

Signed-off-by: Baolin Wang <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/base/regmap/regmap.c

index bfe2f250d011eceb5017878af79336a194ceb5dd..8d516a9bfc01722567588523b92e7fdcc2b75339 100644 (file)
@@ -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) ||
This page took 0.069541 seconds and 4 git commands to generate.