Commit a9fbbbd7 authored by Sachin Kamat's avatar Sachin Kamat Committed by Jonathan Cameron

iio: adis16400: Remove unused variable

'rx' is not used in this function. Remove it.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 14b596c9
...@@ -18,7 +18,7 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev, ...@@ -18,7 +18,7 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
{ {
struct adis16400_state *st = iio_priv(indio_dev); struct adis16400_state *st = iio_priv(indio_dev);
struct adis *adis = &st->adis; struct adis *adis = &st->adis;
uint16_t *tx, *rx; uint16_t *tx;
if (st->variant->flags & ADIS16400_NO_BURST) if (st->variant->flags & ADIS16400_NO_BURST)
return adis_update_scan_mode(indio_dev, scan_mask); return adis_update_scan_mode(indio_dev, scan_mask);
...@@ -35,7 +35,6 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev, ...@@ -35,7 +35,6 @@ int adis16400_update_scan_mode(struct iio_dev *indio_dev,
if (!adis->buffer) if (!adis->buffer)
return -ENOMEM; return -ENOMEM;
rx = adis->buffer;
tx = adis->buffer + indio_dev->scan_bytes; tx = adis->buffer + indio_dev->scan_bytes;
tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD); tx[0] = ADIS_READ_REG(ADIS16400_GLOB_CMD);
......
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