Commit d3773ba1 authored by Xie XiuQi's avatar Xie XiuQi Committed by Linus Torvalds
Browse files

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: default avatarXie XiuQi <>
Reviewed-by: default avatarTejun Heo <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent ec778edf
......@@ -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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment