diff options
author | Daeseok Youn <daeseok.youn@gmail.com> | 2014-04-01 19:46:43 +0900 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-01 12:09:08 +0100 |
commit | a7a037c837cb0f9d011cb3ca6e6837989986570c (patch) | |
tree | 83be0b112f0311eb8cfdf9152f3a3dd380d236e6 /drivers/base/regmap/regmap.c | |
parent | 6cfec04bcc05a829179c02584bb55f28fee03795 (diff) | |
download | blackbird-op-linux-a7a037c837cb0f9d011cb3ca6e6837989986570c.tar.gz blackbird-op-linux-a7a037c837cb0f9d011cb3ca6e6837989986570c.zip |
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>
Diffstat (limited to 'drivers/base/regmap/regmap.c')
-rw-r--r-- | drivers/base/regmap/regmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 43065ceff90f..e4932a8f6c85 100644 --- 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; |