From: Sachin Kamat Date: Fri, 7 Mar 2014 07:38:00 +0000 (+0000) Subject: iio: xilinx-xadc: Remove unused variable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fc96d25ad0dc8cf512d233abdc6a8e097d357d95;p=linux-beck.git iio: xilinx-xadc: Remove unused variable 'offset’ is not used in the function. Remove it. Signed-off-by: Sachin Kamat Acked-by: Lars-Peter Clausen Cc: Michal Simek Signed-off-by: Jonathan Cameron --- 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( static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) { const struct iio_chan_spec *chan; - unsigned int offset; /* Temperature threshold error, we don't handle this yet */ if (event == 0) return; - if (event < 4) - offset = event; - else - offset = event + 4; - chan = xadc_event_to_channel(indio_dev, event); if (chan->type == IIO_TEMP) {