Staging: iio: accel: adis16201: Add a blank space before returns
authorHimanshu Jha <himanshujha199640@gmail.com>
Mon, 5 Mar 2018 07:49:21 +0000 (13:19 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 7 Mar 2018 20:30:37 +0000 (20:30 +0000)
Adding a blank space before/after some returns improves readability.

Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/accel/adis16201.c

index 0f6a2041402396da744ded05447812e3883d7fe5..0fae8aaf1cf41d076f149d8683130f24184cdcff 100644 (file)
@@ -232,6 +232,7 @@ static int adis16201_read_raw(struct iio_dev *indio_dev,
                *val = val16;
                return IIO_VAL_INT;
        }
+
        return -EINVAL;
 }
 
@@ -262,6 +263,7 @@ static int adis16201_write_raw(struct iio_dev *indio_dev,
                addr = adis16201_addresses[chan->scan_index];
                return adis_write_reg_16(st, addr, val16);
        }
+
        return -EINVAL;
 }
 
@@ -336,6 +338,7 @@ static int adis16201_probe(struct spi_device *spi)
        ret = adis_init(st, indio_dev, spi, &adis16201_data);
        if (ret)
                return ret;
+
        ret = adis_setup_buffer_and_trigger(st, indio_dev, NULL);
        if (ret)
                return ret;
@@ -348,6 +351,7 @@ static int adis16201_probe(struct spi_device *spi)
        ret = iio_device_register(indio_dev);
        if (ret < 0)
                goto error_cleanup_buffer_trigger;
+
        return 0;
 
 error_cleanup_buffer_trigger: