From: Xie XiuQi Date: Tue, 12 Nov 2013 23:09:49 +0000 (-0800) Subject: lib/debugobjects.c: remove unnecessary work pending test X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d3773ba13c8ca63a4ee9e7926813f6e82be27a6c;p=openwrt%2Fstaging%2Fblogic.git lib/debugobjects.c: 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/lib/debugobjects.c b/lib/debugobjects.c index bf2c8b1043d8..e0731c3db706 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -196,7 +196,7 @@ static void free_object(struct debug_obj *obj) * initialized: */ if (obj_pool_free > ODEBUG_POOL_SIZE && obj_cache) - sched = keventd_up() && !work_pending(&debug_obj_work); + sched = keventd_up(); hlist_add_head(&obj->node, &obj_pool); obj_pool_free++; obj_pool_used--;