projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cfec04
)
regmap: adds missing braces in regmap_init()
author
Daeseok Youn
<daeseok.youn@gmail.com>
Tue, 1 Apr 2014 10:46:43 +0000
(19:46 +0900)
committer
Mark Brown
<broonie@linaro.org>
Tue, 1 Apr 2014 11:09:08 +0000
(12:09 +0100)
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>
drivers/base/regmap/regmap.c
patch
|
blob
|
history
diff --git
a/drivers/base/regmap/regmap.c
b/drivers/base/regmap/regmap.c
index 43065ceff90f9402f03e752910eeb44c597fa122..e4932a8f6c855f2ce4c4e392396e943c87946537 100644
(file)
--- a/
drivers/base/regmap/regmap.c
+++ b/
drivers/base/regmap/regmap.c
@@
-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;