From: Daeseok Youn Date: Tue, 1 Apr 2014 10:46:43 +0000 (+0900) Subject: regmap: adds missing braces in regmap_init() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a7a037c837cb0f9d011cb3ca6e6837989986570c;p=linux-beck.git 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 Signed-off-by: Mark Brown --- 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;