diff options
-rw-r--r-- | drivers/iio/light/adjd_s311.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c index f3068477b466..1d8ecb787944 100644 --- a/drivers/iio/light/adjd_s311.c +++ b/drivers/iio/light/adjd_s311.c | |||
@@ -120,7 +120,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p) | |||
120 | struct iio_dev *indio_dev = pf->indio_dev; | 120 | struct iio_dev *indio_dev = pf->indio_dev; |
121 | struct adjd_s311_data *data = iio_priv(indio_dev); | 121 | struct adjd_s311_data *data = iio_priv(indio_dev); |
122 | s64 time_ns = iio_get_time_ns(); | 122 | s64 time_ns = iio_get_time_ns(); |
123 | int len = 0; | ||
124 | int i, j = 0; | 123 | int i, j = 0; |
125 | 124 | ||
126 | int ret = adjd_s311_req_data(indio_dev); | 125 | int ret = adjd_s311_req_data(indio_dev); |
@@ -135,7 +134,6 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p) | |||
135 | goto done; | 134 | goto done; |
136 | 135 | ||
137 | data->buffer[j++] = ret & ADJD_S311_DATA_MASK; | 136 | data->buffer[j++] = ret & ADJD_S311_DATA_MASK; |
138 | len += 2; | ||
139 | } | 137 | } |
140 | 138 | ||
141 | iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns); | 139 | iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, time_ns); |