Thread (4 messages) flat view 4 messages, 3 authors, 2021-01-18

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

From: Linus Walleij <hidden>
Date: 2021-01-18 15:35:22
Also in: linux-gpio, lkml

On Fri, Jan 15, 2021 at 7:24 PM Ray Jui [off-list ref] wrote:
quoted
-             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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help