summaryrefslogtreecommitdiff
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.cirrus.com>2020-09-18 12:20:02 +0100
committerMark Brown <broonie@kernel.org>2020-09-18 12:47:37 +0100
commitd36cb0205f034e943aa29e35b59c6a441f0056b5 (patch)
treece6f7646acaa0c243ec7750da3f3feacb4e114af /drivers/base/regmap
parent94cc89eb8fa5039fcb6e3e3d50f929ddcccee095 (diff)
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@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com> Link: https://lore.kernel.org/r/20200918112002.15216-1-ckeepax@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r--drivers/base/regmap/regmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c
index e22c21affebd..388ff8a6816c 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;