[PATCH] drivers/pinctrl/bcm: Simplify bool comparison

Linus Walleij linus.walleij at linaro.org
Mon Jan 18 10:29:19 EST 2021


On Fri, Jan 15, 2021 at 7:24 PM Ray Jui <ray.jui at broadcom.com> wrote:

> > -             if ((pull_up == false) && (pull_down == false))
> > +             if (!pull_up && !pull_down)
>
> Looks fine as improvement, but I'm curious why there's a warning to
> start with.

There is no semantic difference. This is a purely syntactic warning.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list