aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorPeter Meerwald <pmeerw@pmeerw.net>2014-07-01 22:29:00 +0100
committerJonathan Cameron <jic23@kernel.org>2014-01-11 11:51:33 +0000
commit92a18a841bb0d561a937796eeb40981be94b9dc7 (patch)
tree10e818b5dec3ac08f76c813cea7a9f971e3ab2ac /drivers/iio
parentiio: Remove obsolete variable in adjd_s311 driver (diff)
downloadlinux-dev-92a18a841bb0d561a937796eeb40981be94b9dc7.tar.xz
linux-dev-92a18a841bb0d561a937796eeb40981be94b9dc7.zip
iio: Remove obsolete variable in tcs3472 driver
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/tcs3472.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c
index 887fecf1f9bb..fe063a0a21cd 100644
--- a/drivers/iio/light/tcs3472.c
+++ b/drivers/iio/light/tcs3472.c
@@ -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,