Re: [PATCH] char/tpm: Use true and false for bools

2012-11-29 Thread Kent Yoder
On Thu, Nov 29, 2012 at 01:42:47AM +0100, Peter Huewe wrote: > Am Donnerstag, 29. November 2012, 01:25:19 schrieb Al Viro: > > On Thu, Nov 29, 2012 at 01:20:37AM +0100, Peter Huewe wrote: > > > - itpm = (probe == 0) ? 0 : 1; > > > + itpm = (probe == 0) ? false : true; > > > > Charm

Re: [PATCH] char/tpm: Use true and false for bools

2012-11-28 Thread Peter Huewe
Am Donnerstag, 29. November 2012, 01:25:19 schrieb Al Viro: > On Thu, Nov 29, 2012 at 01:20:37AM +0100, Peter Huewe wrote: > > - itpm = (probe == 0) ? 0 : 1; > > + itpm = (probe == 0) ? false : true; > > Charming. Not that original had been better, but... Yeah. Sorry it's late

Re: [PATCH] char/tpm: Use true and false for bools

2012-11-28 Thread Al Viro
On Thu, Nov 29, 2012 at 01:20:37AM +0100, Peter Huewe wrote: > - itpm = (probe == 0) ? 0 : 1; > + itpm = (probe == 0) ? false : true; Charming. Not that original had been better, but... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

[PATCH] char/tpm: Use true and false for bools

2012-11-28 Thread Peter Huewe
Bool initializations should use true and false. Bool tests don't need comparisons. Based on contributions from Joe Perches, Rusty Russell and Bruce W Allan. The semantic patch that makes this output is available in scripts/coccinelle/misc/boolinit.cocci. More information about semantic patching