]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
regulator: s2mpa01: Fix inconsistent indenting
authorKrzysztof Kozlowski <krzk@kernel.org>
Sat, 11 Mar 2017 19:01:24 +0000 (21:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 13 Mar 2017 16:46:47 +0000 (16:46 +0000)
Broken indenting makes code more difficult to read and brings
confusion. Fix warning reported by Smatch:
s2mpa01.c:362 s2mpa01_pmic_probe() warn: inconsistent indenting

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/s2mpa01.c

index dc2105c619a65a301489daf56b36f0cd2d582942..8ac50bc9d5ff0cb12ebd561a1819bfd2ea53fc4e 100644 (file)
@@ -357,11 +357,11 @@ static int s2mpa01_pmic_probe(struct platform_device *pdev)
        if (iodev->dev->of_node) {
                reg_np = of_get_child_by_name(iodev->dev->of_node,
                                                        "regulators");
-                       if (!reg_np) {
-                               dev_err(&pdev->dev,
-                                       "could not find regulators sub-node\n");
-                               return -EINVAL;
-                       }
+               if (!reg_np) {
+                       dev_err(&pdev->dev,
+                               "could not find regulators sub-node\n");
+                       return -EINVAL;
+               }
 
                of_regulator_match(&pdev->dev, reg_np, rdata,
                                                S2MPA01_REGULATOR_MAX);