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

Fixes: 94cc89eb8f ("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>
This commit is contained in:
Charles Keepax 2020-09-18 12:20:02 +01:00 committed by Mark Brown
parent 94cc89eb8f
commit d36cb0205f
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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;