Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc96d25a authored by Sachin Kamat's avatar Sachin Kamat Committed by Jonathan Cameron
Browse files

iio: xilinx-xadc: Remove unused variable



'offset’ is not used in the function. Remove it.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@samsung.com>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 10215d86
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -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)
static void xadc_handle_event(struct iio_dev *indio_dev, unsigned int event)
{
{
	const struct iio_chan_spec *chan;
	const struct iio_chan_spec *chan;
	unsigned int offset;


	/* Temperature threshold error, we don't handle this yet */
	/* Temperature threshold error, we don't handle this yet */
	if (event == 0)
	if (event == 0)
		return;
		return;


	if (event < 4)
		offset = event;
	else
		offset = event + 4;

	chan = xadc_event_to_channel(indio_dev, event);
	chan = xadc_event_to_channel(indio_dev, event);


	if (chan->type == IIO_TEMP) {
	if (chan->type == IIO_TEMP) {