diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-03-07 02:38:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-07-03 17:00:40 -0400 |
commit | fc96d25ad0dc8cf512d233abdc6a8e097d357d95 (patch) | |
tree | 1c6b8a491c22737f4e3f30e0cb97c89ab201725f /drivers/iio | |
parent | 10215d8689b605ce30ef9327a98337ce056b1c3d (diff) |
iio: xilinx-xadc: Remove unused variable
'offset’ is not used in the function. Remove it.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/xilinx-xadc-events.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iio/adc/xilinx-xadc-events.c b/drivers/iio/adc/xilinx-xadc-events.c index 3e7f0d7a80c3..edcf3aabd70d 100644 --- a/drivers/iio/adc/xilinx-xadc-events.c +++ b/drivers/iio/adc/xilinx-xadc-events.c | |||
@@ -31,17 +31,11 @@ static const struct iio_chan_spec *xadc_event_to_channel( | |||
31 | static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) | 31 | static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) |
32 | { | 32 | { |
33 | const struct iio_chan_spec *chan; | 33 | const struct iio_chan_spec *chan; |
34 | unsigned int offset; | ||
35 | 34 | ||
36 | /* Temperature threshold error, we don't handle this yet */ | 35 | /* Temperature threshold error, we don't handle this yet */ |
37 | if (event == 0) | 36 | if (event == 0) |
38 | return; | 37 | return; |
39 | 38 | ||
40 | if (event < 4) | ||
41 | offset = event; | ||
42 | else | ||
43 | offset = event + 4; | ||
44 | |||
45 | chan = xadc_event_to_channel(indio_dev, event); | 39 | chan = xadc_event_to_channel(indio_dev, event); |
46 | 40 | ||
47 | if (chan->type == IIO_TEMP) { | 41 | if (chan->type == IIO_TEMP) { |