Messages in this thread Patch in this message | | | From | Joonsoo Kim <> | Subject | [PATCH 2/3] workqueue: trivial fix for return statement in work_busy() | Date | Sun, 21 Oct 2012 01:30:06 +0900 |
| |
Return type of work_busy() is unsigned int. There is return statement returning boolean value, 'false' in work_busy(). It is not problem, because 'false' may be treated '0'. However, fixing it would make code robust.
Signed-off-by: Joonsoo Kim <js1304@gmail.com>
diff --git a/kernel/workqueue.c b/kernel/workqueue.c index c57358e..27a6dee 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -3479,7 +3479,7 @@ unsigned int work_busy(struct work_struct *work) unsigned int ret = 0; if (!gcwq) - return false; + return 0; spin_lock_irqsave(&gcwq->lock, flags); -- 1.7.9.5
| |