Commit 92a18a84 authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

iio: Remove obsolete variable in tcs3472 driver

len variable became obsolete with
iio_push_to_buffers_with_timestamp()
Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 4f38521b
...@@ -179,7 +179,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p) ...@@ -179,7 +179,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
struct iio_poll_func *pf = p; struct iio_poll_func *pf = p;
struct iio_dev *indio_dev = pf->indio_dev; struct iio_dev *indio_dev = pf->indio_dev;
struct tcs3472_data *data = iio_priv(indio_dev); struct tcs3472_data *data = iio_priv(indio_dev);
int len = 0;
int i, j = 0; int i, j = 0;
int ret = tcs3472_req_data(data); int ret = tcs3472_req_data(data);
...@@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p) ...@@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p)
goto done; goto done;
data->buffer[j++] = ret; data->buffer[j++] = ret;
len += 2;
} }
iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, iio_push_to_buffers_with_timestamp(indio_dev, data->buffer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment