[PATCH V2] mpc512x/clock: fix clk_get logic

Grant Likely grant.likely at secretlab.ca
Tue Nov 3 04:48:58 EST 2009


On Fri, Oct 30, 2009 at 10:53 AM, Wolfram Sang <w.sang at pengutronix.de> wrote:
> +       bool id_matched = !id;
> +       bool dev_matched = !dev;
[...]
> +                       dev_matched = true;
> +               if (id && strcmp(id, p->name) == 0)
> +                       id_matched = true;

Using bool/true/false doesn't seem to be a common pattern in the
kernel.  Anyone know what the winds of prevailing opinion are
regarding 'bool' in kernel code?

g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.


More information about the Linuxppc-dev mailing list