Re: [PATCH 19/25] sched: Use bool function return values of true/false not 1/0

Joe Perches
2015-03-31T09:09:48Z

On Tue, 2015-03-31 at 10:53 +0200, Peter Zijlstra wrote:
> On Mon, Mar 30, 2015 at 04:46:17PM -0700, Joe Perches wrote:
> > Use the normal return values for bool fsnctions
> >
> > Update the other sets of ret in try_wait_for_completion.
>
> I'm missing a why; why are you doing this?

It's just a trivial little consistency patch to
make bool functions return bool values instead of
1 or 0 (even though of course 1 and 0 are the
values for true and false)

There's something like 13000 uses of return true
or return false in the tree vs these 180 or so
uses of 1 and 0.