kernel/sched/completion.c:278:9-10: WARNING: return of 0/1 in function 'try_wait_for_completion' with return type bool
Return statements in functions returning bool should use true/false instead of 1/0. Generated by: scripts/coccinelle/misc/boolreturn.cocci CC: Nicholas Mc Guire <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> --- completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/sched/completion.c +++ b/kernel/sched/completion.c @@ -275,7 +275,7 @@ bool try_wait_for_completion(struct comp * return early in the blocking case. */ if (!ACCESS_ONCE(x->done)) - return 0; + return false; spin_lock_irqsave(&x->wait.lock, flags); if (!x->done) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

