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

From: Linus Walleij
Date: Mon Jan 18 2021 - 10:35:21 EST


On Fri, Jan 15, 2021 at 7:24 PM Ray Jui <ray.jui@xxxxxxxxxxxx> 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