Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7a037c8 authored by Daeseok Youn's avatar Daeseok Youn Committed by Mark Brown
Browse files

regmap: adds missing braces in regmap_init()



It need to add curly braces because the inner for "if" has
two statements.

coccicheck says:
 drivers/base/regmap/regmap.c:765:2-44:
code aligned with following code on line 766

Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6cfec04b
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -760,10 +760,11 @@ struct regmap *regmap_init(struct device *dev,
	if (ret != 0)
	if (ret != 0)
		goto err_range;
		goto err_range;


	if (dev)
	if (dev) {
		ret = regmap_attach_dev(dev, map, config);
		ret = regmap_attach_dev(dev, map, config);
		if (ret != 0)
		if (ret != 0)
			goto err_regcache;
			goto err_regcache;
	}


	return map;
	return map;