iio: frequency: Remove unnecessary braces around single statement block
authorRoberta Dobrescu <roberta.dobrescu@gmail.com>
Tue, 16 Dec 2014 09:11:46 +0000 (11:11 +0200)
committerJonathan Cameron <jic23@kernel.org>
Fri, 26 Dec 2014 09:38:42 +0000 (09:38 +0000)
This patch fixes the following checkpatch.pl warning:
WARNING: braces {} are not necessary for single statement blocks

Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/frequency/adf4350.c

index 2b301eba1d768f9053eafb16e0d5a0abef9d8014..10a0dfc3b01fa8045a9c20bf597e3b1110b57d2e 100644 (file)
@@ -611,9 +611,8 @@ static int adf4350_remove(struct spi_device *spi)
        if (st->clk)
                clk_disable_unprepare(st->clk);
 
-       if (!IS_ERR(reg)) {
+       if (!IS_ERR(reg))
                regulator_disable(reg);
-       }
 
        return 0;
 }