From: Krzysztof Kozlowski Date: Sat, 11 Mar 2017 19:01:24 +0000 (+0200) Subject: regulator: s2mpa01: Fix inconsistent indenting X-Git-Tag: v4.12-rc1~111^2~3^5 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5339c34f3906b34ddcd8c9614232ae1302d30c7b;p=karo-tx-linux.git regulator: s2mpa01: Fix inconsistent indenting 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 Reviewed-by: Chanwoo Choi Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/s2mpa01.c b/drivers/regulator/s2mpa01.c index dc2105c619a6..8ac50bc9d5ff 100644 --- a/drivers/regulator/s2mpa01.c +++ b/drivers/regulator/s2mpa01.c @@ -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);