From: Charles Keepax Date: Fri, 18 Sep 2020 11:20:02 +0000 (+0100) Subject: regmap: debugfs: Add back in erroneously removed initialisation of ret X-Git-Tag: v5.15~2855^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d36cb0205f034e943aa29e35b59c6a441f0056b5;p=platform%2Fkernel%2Flinux-starfive.git regmap: debugfs: Add back in erroneously removed initialisation of ret Fixes: 94cc89eb8fa5 ("regmap: debugfs: Fix handling of name string for debugfs init delays") Reported-by: kernel test robot Reported-by: Dan Carpenter Signed-off-by: Charles Keepax Link: https://lore.kernel.org/r/20200918112002.15216-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index e22c21a..388ff8a 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -694,9 +694,9 @@ struct regmap *__regmap_init(struct device *dev, const char *lock_name) { struct regmap *map; + int ret = -EINVAL; enum regmap_endian reg_endian, val_endian; int i, j; - int ret; if (!config) goto err;