Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Sachin Kamat and committed by
Jonathan Cameron
fc96d25a 10215d86

-6
-6
drivers/iio/adc/xilinx-xadc-events.c
··· 31 31 static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event) 32 32 { 33 33 const struct iio_chan_spec *chan; 34 - unsigned int offset; 35 34 36 35 /* Temperature threshold error, we don't handle this yet */ 37 36 if (event == 0) 38 37 return; 39 - 40 - if (event < 4) 41 - offset = event; 42 - else 43 - offset = event + 4; 44 38 45 39 chan = xadc_event_to_channel(indio_dev, event); 46 40