Re: [PATCH] sched/fair: Fix assignment of boolean variables

2018-12-03 Thread Valentin Schneider
On 03/12/2018 08:33, Peter Zijlstra wrote: > On Sat, Dec 01, 2018 at 05:09:36PM +0800, Wen Yang wrote: >> Fix the following warnings reported by coccinelle: >> kernel//sched/fair.c:7958:3-12: WARNING: Assignment of bool to 0/1 >> Duh, Patrick raised that one to me last week but I got caught up in

Re: [PATCH] sched/fair: Fix assignment of boolean variables

2018-12-03 Thread Peter Zijlstra
On Sat, Dec 01, 2018 at 05:09:36PM +0800, Wen Yang wrote: > Fix the following warnings reported by coccinelle: > kernel//sched/fair.c:7958:3-12: WARNING: Assignment of bool to 0/1 > > This also makes the code more readable. I disagree; anybody that has trouble with 0/1 vs false/true needs to stay

Re: [PATCH] sched/fair: Fix assignment of boolean variables

2018-12-01 Thread Joey Pabalinas
On Sat, Dec 01, 2018 at 05:09:36PM +0800, Wen Yang wrote: > Fix the following warnings reported by coccinelle: > kernel//sched/fair.c:7958:3-12: WARNING: Assignment of bool to 0/1 > > This also makes the code more readable. > > Signed-off-by: Wen Yang > CC: Ingo Molnar > CC: Peter Zijlstra > C

[PATCH] sched/fair: Fix assignment of boolean variables

2018-12-01 Thread Wen Yang
Fix the following warnings reported by coccinelle: kernel//sched/fair.c:7958:3-12: WARNING: Assignment of bool to 0/1 This also makes the code more readable. Signed-off-by: Wen Yang CC: Ingo Molnar CC: Peter Zijlstra CC: linux-kernel@vger.kernel.org --- kernel/sched/fair.c | 2 +- 1 file chan