Commit d36cb020 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown

regmap: debugfs: Add back in erroneously removed initialisation of ret

Fixes: 94cc89eb ("regmap: debugfs: Fix handling of name string for debugfs init delays")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20200918112002.15216-1-ckeepax@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 94cc89eb
...@@ -694,9 +694,9 @@ struct regmap *__regmap_init(struct device *dev, ...@@ -694,9 +694,9 @@ struct regmap *__regmap_init(struct device *dev,
const char *lock_name) const char *lock_name)
{ {
struct regmap *map; struct regmap *map;
int ret = -EINVAL;
enum regmap_endian reg_endian, val_endian; enum regmap_endian reg_endian, val_endian;
int i, j; int i, j;
int ret;
if (!config) if (!config)
goto err; goto err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment