]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regulator: fixed: Fix checkpatch issue
authorJingoo Han <jg1.han@samsung.com>
Mon, 14 Oct 2013 08:46:36 +0000 (17:46 +0900)
committerMark Brown <broonie@linaro.org>
Tue, 15 Oct 2013 12:21:44 +0000 (13:21 +0100)
Fix the following checkpatch warnings.

  WARNING: braces {} are not necessary for any arm of this statement

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/fixed.c

index de811f3b921b52d1f13cde164cb359f745d86bb0..5ea64b94341c5f7a926b07d83536c9d4fe0dba32 100644 (file)
@@ -168,17 +168,15 @@ static int reg_fixed_voltage_probe(struct platform_device *pdev)
                cfg.ena_gpio = config->gpio;
        cfg.ena_gpio_invert = !config->enable_high;
        if (config->enabled_at_boot) {
-               if (config->enable_high) {
+               if (config->enable_high)
                        cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
-               } else {
+               else
                        cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
-               }
        } else {
-               if (config->enable_high) {
+               if (config->enable_high)
                        cfg.ena_gpio_flags |= GPIOF_OUT_INIT_LOW;
-               } else {
+               else
                        cfg.ena_gpio_flags |= GPIOF_OUT_INIT_HIGH;
-               }
        }
        if (config->gpio_is_open_drain)
                cfg.ena_gpio_flags |= GPIOF_OPEN_DRAIN;