lkml.org 
[lkml]   [2015]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 19/25] sched: Use bool function return values of true/false not 1/0
From
Date
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.



\
 
 \ /
  Last update: 2015-03-31 11:41    [W:0.128 / U:1.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site