Messages in this thread | | | From | Peter Hüwe <> | Subject | Re: [PATCH v3] char/tpm: Use true and false for bools | Date | Thu, 29 Nov 2012 23:16:55 +0100 |
| |
Am Donnerstag, 29. November 2012, 23:08:11 schrieb Kent Yoder: > On Thu, Nov 29, 2012 at 01:54:52PM -0800, Joe Perches wrote: > > > > > > - itpm = (probe == 0) ? 0 : 1; > > > + itpm = !!probe; > > > > Even more trivia: > > > > This !! isn't necessary as ints assigned to bool are converted > > by the compiler to 0 or 1. > > Good to know, thanks Joe!
So v2 is fine.
Peter
| |