aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-04-01 06:46:43 -0400
committerMark Brown <broonie@linaro.org>2014-04-01 07:09:08 -0400
commita7a037c837cb0f9d011cb3ca6e6837989986570c (patch)
tree83be0b112f0311eb8cfdf9152f3a3dd380d236e6 /drivers/base/regmap
parent6cfec04bcc05a829179c02584bb55f28fee03795 (diff)
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')
-rw-r--r--drivers/base/regmap/regmap.c3
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:
760 if (ret != 0) 760 if (ret != 0)
761 goto err_range; 761 goto err_range;
762 762
763 if (dev) 763 if (dev) {
764 ret = regmap_attach_dev(dev, map, config); 764 ret = regmap_attach_dev(dev, map, config);
765 if (ret != 0) 765 if (ret != 0)
766 goto err_regcache; 766 goto err_regcache;
767 }
767 768
768 return map; 769 return map;
769 770