Skip to contentSkip to conversation

Drivers: iio:adc: fix brace coding style issue in at91_adc.c

PATCH In review [email protected] 2 participants 2 messages Dec 17, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Drivers: iio:adc: fix brace coding style issue in at91_adc.c

From: Venkat Prashanth B U <[email protected]>

This is a patch to the at91_adc.c file that fixes up a brace warning found by the checkpatch.pl tool

---
 drivers/iio/adc/at91_adc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/adc/at91_adc.c +2 -2
index 7b40925..a4767d6 100644
@@ -1165,9 +1165,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

--
1.9.1

maintainer
#1 lore raw
Quoted 6 lines · On Sun, 17 Dec 2017 14:37:48 +0530 [email protected] wrote:

From: Venkat Prashanth B U <[email protected]>

This is a patch to the at91_adc.c file that fixes up a brace warning found by the checkpatch.pl tool

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

Thanks,

Jonathan

Quoted 27 lines
---
 drivers/iio/adc/at91_adc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/iio/adc/at91_adc.c +2 -3
index 7b40925..a4767d6 100644
@@ -1165,9 +1165,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
--

1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html