]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iio: Remove obsolete variable in adjd_s311 driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Tue, 1 Jul 2014 21:29:00 +0000 (22:29 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 11 Jan 2014 11:51:33 +0000 (11:51 +0000)
len variable become obsolete with
iio_push_to_buffers_with_timestamp()

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/adjd_s311.c

index f3068477b4668e8def14993af2c93f061a730bd5..1d8ecb787944d32dceedfa62a0c25c2f86110261 100644 (file)
@@ -120,7 +120,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
        struct iio_dev *indio_dev = pf->indio_dev;
        struct adjd_s311_data *data = iio_priv(indio_dev);
        s64 time_ns = iio_get_time_ns();
-       int len = 0;
        int i, j = 0;
 
        int ret = adjd_s311_req_data(indio_dev);
@@ -135,7 +134,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
                        goto done;
 
                data->buffer[j++] = ret & ADJD_S311_DATA_MASK;
-               len += 2;
        }
 
        iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns);