mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
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: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
6cfec04bcc
commit
a7a037c837
@ -760,10 +760,11 @@ skip_format_initialization:
|
||||
if (ret != 0)
|
||||
goto err_range;
|
||||
|
||||
if (dev)
|
||||
if (dev) {
|
||||
ret = regmap_attach_dev(dev, map, config);
|
||||
if (ret != 0)
|
||||
goto err_regcache;
|
||||
}
|
||||
|
||||
return map;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user