Skip to contentSkip to conversation

staging: iio: adis16060: Fix coding style problem

PATCH Applied Oussama Jabbari 2 participants 2 messages Aug 6, 2014 – Aug 7, 2014

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

PATCH 1/1 staging: iio: adis16060: Fix coding style problem

This patch fixes a warning from checkpatch.pl script :
"WARNING: Missing a blank line after declarations"

---
The reason of this patch is for completing one task of the Eudyptula Challenge.

 drivers/staging/iio/gyro/adis16060_core.c |    1 +
 1 file changed, 1 insertion(+)
drivers/staging/iio/gyro/adis16060_core.c +1 -0
index d5d395c..4c5869d 100644
@@ -180,6 +180,7 @@ static int adis16060_w_probe(struct spi_device *spi)
 	int ret;
 	struct iio_dev *indio_dev = adis16060_iio_dev;
 	struct adis16060_state *st;
+
 	if (!indio_dev) {
 		ret =  -ENODEV;
 		goto error_ret;
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw
Quoted 4 lines · Oussama Jabbari

This patch fixes a warning from checkpatch.pl script :
"WARNING: Missing a blank line after declarations"

Whilst I find it hard to care about this particular issue, I'm accepting this mainly to avoid getting the same thing sometime in the future!

Anyhow, a nicely formatted patch. The only change I would have suggested would be in the title which might as be more specific.

[PATCH] staging:iio:adis16060 Add missing blank line after declaration.

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

J

Quoted 20 lines

---
The reason of this patch is for completing one task of the Eudyptula Challenge.

 drivers/staging/iio/gyro/adis16060_core.c |    1 +
 1 file changed, 1 insertion(+)
drivers/staging/iio/gyro/adis16060_core.c +1 -0
index d5d395c..4c5869d 100644
@@ -180,6 +180,7 @@ static int adis16060_w_probe(struct spi_device *spi)
 	int ret;
 	struct iio_dev *indio_dev = adis16060_iio_dev;
 	struct adis16060_state *st;
+
 	if (!indio_dev) {
 		ret =  -ENODEV;
 		goto error_ret;