summaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorXie XiuQi <xiexiuqi@huawei.com>2013-11-12 15:09:49 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-13 12:09:22 +0900
commitd3773ba13c8ca63a4ee9e7926813f6e82be27a6c (patch)
tree0a747198208b9bfe7d804ca9ba122647ed5c2975 /lib/debugobjects.c
parentec778edf97dcaa517e5b0eea6f1a9ba9d476e4a8 (diff)
downloadlinux-d3773ba13c8ca63a4ee9e7926813f6e82be27a6c.tar.gz
linux-d3773ba13c8ca63a4ee9e7926813f6e82be27a6c.tar.bz2
linux-d3773ba13c8ca63a4ee9e7926813f6e82be27a6c.zip
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 <xiexiuqi@huawei.com> Reviewed-by: Tejun Heo <tj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c2
1 files changed, 1 insertions, 1 deletions
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--;