From: Xie XiuQi Date: Fri, 6 Sep 2013 11:02:00 +0000 (+0100) Subject: staging:iio:adc:ad7606 remove unnecessary work pending test X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4fa3332505898b4709b75e99bb6a09c56885266f;p=linux-beck.git staging:iio:adc:ad7606 remove unnecessary work pending test Remove unnecessary work pending test before calling schedule_work(). It has been tested in queue_work_on() already. No functional changed. Signed-off-by: Xie XiuQi Reviewed-by: Tejun Heo Acked-by: Michael Hennerich Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/adc/ad7606_core.c b/drivers/staging/iio/adc/ad7606_core.c index 0eb5ed05fbb8..f042027b5291 100644 --- a/drivers/staging/iio/adc/ad7606_core.c +++ b/drivers/staging/iio/adc/ad7606_core.c @@ -425,8 +425,7 @@ static irqreturn_t ad7606_interrupt(int irq, void *dev_id) struct ad7606_state *st = iio_priv(indio_dev); if (iio_buffer_enabled(indio_dev)) { - if (!work_pending(&st->poll_work)) - schedule_work(&st->poll_work); + schedule_work(&st->poll_work); } else { st->done = true; wake_up_interruptible(&st->wq_data_avail);