]> Pileus Git - ~andy/linux/commitdiff
staging: olpc_dcon: remove unnecessary work pending test
authorXie XiuQi <xiexiuqi@huawei.com>
Thu, 19 Sep 2013 22:04:57 +0000 (15:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 23:29:00 +0000 (16:29 -0700)
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>
Cc: Jens Frederich <jfrederich@gmail.com>
Cc: Daniel Drake <dsd@laptop.org>
Cc: Jon Nettleton <jon.nettleton@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index 198595e8d742f798256198d57946ca18012295a5..92b02891704d04738365011cd28f6f93b7055dd8 100644 (file)
@@ -383,7 +383,7 @@ static void dcon_set_source(struct dcon_priv *dcon, int arg)
 
        dcon->pending_src = arg;
 
-       if ((dcon->curr_src != arg) && !work_pending(&dcon->switch_source))
+       if (dcon->curr_src != arg)
                schedule_work(&dcon->switch_source);
 }