]> git.karo-electronics.de Git - linux-beck.git/commitdiff
iio: Remove obsolete variable in tcs3472 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 became 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/tcs3472.c

index 887fecf1f9bb8eccb67a7eb1135428ade7ed71f0..fe063a0a21cdd7a90a3d01d59c6aecaafb386a07 100644 (file)
@@ -179,7 +179,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
        struct iio_poll_func *pf = p;
        struct iio_dev *indio_dev = pf->indio_dev;
        struct tcs3472_data *data = iio_priv(indio_dev);
-       int len = 0;
        int i, j = 0;
 
        int ret = tcs3472_req_data(data);
@@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
                        goto done;
 
                data->buffer[j++] = ret;
-               len += 2;
        }
 
        iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,