staging:iio:adc:ad7606 remove unnecessary work pending test
authorXie XiuQi <xiexiuqi@huawei.com>
Fri, 6 Sep 2013 11:02:00 +0000 (12:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 9 Sep 2013 21:14:16 +0000 (22:14 +0100)
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 <xiexiuqi@huawei.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/adc/ad7606_core.c

index 0eb5ed0..f042027 100644 (file)
@@ -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);