[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20150123183555.GA15416@waimea>
Date: Sat, 24 Jan 2015 02:35:55 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Nicholas Mc Guire <der.herr@...r.at>
Cc: kbuild-all@...org, Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] sched: completion: fix boolreturn.cocci warnings
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@...r.at>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists