Drivers: iio:adc: fix brace coding style issue in at91_adc.c
authorVenkat Prashanth B U <venkat.prashanth2498@gmail.com>
Sun, 17 Dec 2017 09:07:48 +0000 (14:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Jan 2018 15:03:42 +0000 (16:03 +0100)
This is a patch to the at91_adc.c file that fixes up a brace
warning found by the checkpatch.pl tool

Signed-off-by: Venkat Prashanth B U <venkat.prashanth2498@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/at91_adc.c

index 3836d42..71a5ee6 100644 (file)
@@ -1177,9 +1177,9 @@ static int at91_adc_probe(struct platform_device *pdev)
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 
        st->reg_base = devm_ioremap_resource(&pdev->dev, res);
-       if (IS_ERR(st->reg_base)) {
+       if (IS_ERR(st->reg_base))
                return PTR_ERR(st->reg_base);
-       }
+
 
        /*
         * Disable all IRQs before setting up the handler