From: Venkat Prashanth B U Date: Sun, 17 Dec 2017 09:07:48 +0000 (+0530) Subject: Drivers: iio:adc: fix brace coding style issue in at91_adc.c X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c34812e490b583fab63287249b3cf47326556e2d;p=openwrt%2Fstaging%2Fblogic.git Drivers: iio:adc: fix brace coding style issue in at91_adc.c 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 Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/iio/adc/at91_adc.c b/drivers/iio/adc/at91_adc.c index 3836d4222a3e..71a5ee652b79 100644 --- a/drivers/iio/adc/at91_adc.c +++ b/drivers/iio/adc/at91_adc.c @@ -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