projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec778ed
)
lib/debugobjects.c: remove unnecessary work pending test
author
Xie XiuQi
<
[email protected]
>
Tue, 12 Nov 2013 23:09:49 +0000
(15:09 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 13 Nov 2013 03:09:22 +0000
(12:09 +0900)
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 <
[email protected]
>
Reviewed-by: Tejun Heo <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/debugobjects.c
patch
|
blob
|
history
diff --git
a/lib/debugobjects.c
b/lib/debugobjects.c
index bf2c8b1043d8bb5a8b44d19a139842ffb5514067..e0731c3db7069753ebd312824741783c0e41bf2c 100644
(file)
--- 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--;