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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to