[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200918112002.15216-1-ckeepax@opensource.cirrus.com>
Date: Fri, 18 Sep 2020 12:20:02 +0100
From: Charles Keepax <ckeepax@...nsource.cirrus.com>
To: <broonie@...nel.org>
CC: <dan.carpenter@...cle.com>, <linux-kernel@...r.kernel.org>,
<patches@...nsource.cirrus.com>
Subject: [PATCH] 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 <lkp@...el.com>
Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
Signed-off-by: Charles Keepax <ckeepax@...nsource.cirrus.com>
---
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 d0f7cc574ff34..b24f14ea96d8a 100644
--- a/drivers/base/regmap/regmap.c
+++ b/drivers/base/regmap/regmap.c
@@ -706,9 +706,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;
--
2.11.0
Powered by blists - more mailing lists