iio: Remove obsolete variable in adjd_s311 driver

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>
This commit is contained in:
Peter Meerwald 2014-07-01 22:29:00 +01:00 committed by Jonathan Cameron
parent 82b7afbc8a
commit 4f38521b38
1 changed files with 0 additions and 2 deletions

View 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 iio_dev *indio_dev = pf->indio_dev;
struct adjd_s311_data *data = iio_priv(indio_dev); struct adjd_s311_data *data = iio_priv(indio_dev);
s64 time_ns = iio_get_time_ns(); s64 time_ns = iio_get_time_ns();
int len = 0;
int i, j = 0; int i, j = 0;
int ret = adjd_s311_req_data(indio_dev); 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; goto done;
data->buffer[j++] = ret & ADJD_S311_DATA_MASK; data->buffer[j++] = ret & ADJD_S311_DATA_MASK;
len += 2;
} }
iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns); iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns);