diff options
Diffstat (limited to 'drivers/iio/light/tcs3472.c')
-rw-r--r-- | drivers/iio/light/tcs3472.c | 2 |
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) | |||
179 | struct iio_poll_func *pf = p; | 179 | struct iio_poll_func *pf = p; |
180 | struct iio_dev *indio_dev = pf->indio_dev; | 180 | struct iio_dev *indio_dev = pf->indio_dev; |
181 | struct tcs3472_data *data = iio_priv(indio_dev); | 181 | struct tcs3472_data *data = iio_priv(indio_dev); |
182 | int len = 0; | ||
183 | int i, j = 0; | 182 | int i, j = 0; |
184 | 183 | ||
185 | int ret = tcs3472_req_data(data); | 184 | int ret = tcs3472_req_data(data); |
@@ -194,7 +193,6 @@ static irqreturn_t tcs3472_trigger_handler(int irq, void *p) | |||
194 | goto done; | 193 | goto done; |
195 | 194 | ||
196 | data->buffer[j++] = ret; | 195 | data->buffer[j++] = ret; |
197 | len += 2; | ||
198 | } | 196 | } |
199 | 197 | ||
200 | iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, | 198 | iio_push_to_buffers_with_timestamp(indio_dev, data->buffer, |