Re: checkpatch false positive for "do not use assignment in if condition"
From: Ethan Nelson-Moore
Date: Sat May 16 2026 - 22:32:58 EST
Hi, Joe,
On Sun, May 10, 2026 at 12:31 PM Joe Perches <joe@xxxxxxxxxxx> wrote:
> checkpatch is fundamentally stupid and an incomplete parser. Rely on
> your brain to ignore its incorrect bleats when it's wrong.
>
> FYI it's looking for a single equal sign in the statement
That all makes sense - I just sent this email because checkpatch told
me to contact the maintainers if I saw any false positives :p
Ethan