OSDN Git Service

iio: xilinx-xadc: Remove unused variable
authorSachin Kamat <sachin.kamat@samsung.com>
Fri, 7 Mar 2014 07:38:00 +0000 (07:38 +0000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 3 Jul 2014 21:00:40 +0000 (22:00 +0100)
'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>
drivers/iio/adc/xilinx-xadc-events.c

index 3e7f0d7..edcf3aa 100644 (file)
@@ -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) {