Commit a9fbbbd7d2668232babc60ef77539dd82a33a89c
Committed by
Jonathan Cameron
1 parent
14b596c9d8
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
iio: adis16400: Remove unused variable
'rx' is not used in this function. Remove it. Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
drivers/iio/imu/adis16400_buffer.c
... | ... | @@ -18,7 +18,7 @@ |
18 | 18 | { |
19 | 19 | struct adis16400_state *st = iio_priv(indio_dev); |
20 | 20 | struct adis *adis = &st->adis; |
21 | - uint16_t *tx, *rx; | |
21 | + uint16_t *tx; | |
22 | 22 | |
23 | 23 | if (st->variant->flags & ADIS16400_NO_BURST) |
24 | 24 | return adis_update_scan_mode(indio_dev, scan_mask); |
... | ... | @@ -35,7 +35,6 @@ |
35 | 35 | if (!adis->buffer) |
36 | 36 | return -ENOMEM; |
37 | 37 | |
38 | - rx = adis->buffer; | |
39 | 38 | tx = adis->buffer + indio_dev->scan_bytes; |
40 | 39 | |
41 | 40 | tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD); |