Skip to content

Commit

Permalink
workqueue: trivial fix for return statement in work_busy()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joonsoo Kim authored and Tejun Heo committed Dec 2, 2012
1 parent 8852aac commit 999767b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/workqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 999767b

Please sign in to comment.