LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] sched: completion: fix boolreturn.cocci warnings
       [not found] <201501240250.HuKROpUf%fengguang.wu@intel.com>
@ 2015-01-23 18:35 ` kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-01-23 18:35 UTC (permalink / raw)
  To: Nicholas Mc Guire; +Cc: kbuild-all, Peter Zijlstra, Ingo Molnar, linux-kernel

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 <der.herr@hofr.at>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-23 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <201501240250.HuKROpUf%fengguang.wu@intel.com>
2015-01-23 18:35 ` [PATCH] sched: completion: fix boolreturn.cocci warnings kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).