summaryrefslogtreecommitdiffstats
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorJoonsoo Kim <js1304@gmail.com>2012-10-21 01:30:06 +0900
committerTejun Heo <tj@kernel.org>2012-12-01 16:45:40 -0800
commit999767beb1b4a10eabf90e6017e496536cf4db0b (patch)
tree52025d802a2d350e42b0857502cb1ac7b473f31b /kernel/workqueue.c
parent8852aac25e79e38cc6529f20298eed154f60b574 (diff)
downloadop-kernel-dev-999767beb1b4a10eabf90e6017e496536cf4db0b.zip
op-kernel-dev-999767beb1b4a10eabf90e6017e496536cf4db0b.tar.gz
workqueue: trivial fix for return statement in work_busy()
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> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/workqueue.c')
-rw-r--r--kernel/workqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/workqueue.c b/kernel/workqueue.c
index 084aa47..26f5d16 100644
--- a/kernel/workqueue.c
+++ b/kernel/workqueue.c
@@ -3485,7 +3485,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);
OpenPOWER on IntegriCloud