Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1594159

Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings
Date 2017-03-07 13:10 +0100
Message-ID <tim6e-7io-9@gated-at.bofh.it> (permalink)
References <thP0B-8pE-3@gated-at.bofh.it> <thP0B-8pE-1@gated-at.bofh.it> <tihSV-49r-5@gated-at.bofh.it> <tiiP0-4RB-15@gated-at.bofh.it> <til0t-6mK-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 2017-03-07 at 10:01 +0100, Ingo Molnar wrote:
> To me a lexical 'true/false' instead of '1/0' is a step backwards in readability 
> in many cases

What cases are those to you?

I can't think of any case where 1/0 for true/false
is "more readable" for boolean returns to me.

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] x86/fpu: fix boolreturn.cocci warnings kbuild test robot <fengguang.wu@intel.com> - 2017-03-06 01:50 +0100
  Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings Ingo Molnar <mingo@kernel.org> - 2017-03-07 08:40 +0100
    Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings Thomas Gleixner <tglx@linutronix.de> - 2017-03-07 09:40 +0100
      Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings Ingo Molnar <mingo@kernel.org> - 2017-03-07 12:00 +0100
        Re: [PATCH] x86/fpu: fix boolreturn.cocci warnings Joe Perches <joe@perches.com> - 2017-03-07 13:10 +0100

csiph-web