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

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
...@@ -760,10 +760,11 @@ struct regmap *regmap_init(struct device *dev, ...@@ -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;
......
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