]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iio: adis16400: Remove unused variable
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 7 Mar 2014 07:38:00 +0000 (07:38 +0000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 3 Jul 2014 20:47:01 +0000 (21:47 +0100)
'rx' is not used in this function. Remove it.

Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/imu/adis16400_buffer.c

index f2cf829e5df104ea35b64a0493c4975493826bcb..6e727ffe52621f43bb40f31466730705477961ef 100644 (file)
@@ -18,7 +18,7 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
 {
        struct adis16400_state *st = iio_priv(indio_dev);
        struct adis *adis = &st->adis;
-       uint16_t *tx, *rx;
+       uint16_t *tx;
 
        if (st->variant->flags & ADIS16400_NO_BURST)
                return adis_update_scan_mode(indio_dev, scan_mask);
@@ -35,7 +35,6 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
        if (!adis->buffer)
                return -ENOMEM;
 
-       rx = adis->buffer;
        tx = adis->buffer + indio_dev->scan_bytes;
 
        tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD);