Re: checkpatch false positive for "do not use assignment in if condition"
From: Joe Perches
Date: Sun May 10 2026 - 15:51:41 EST
On 2026-05-09 17:20, Ethan Nelson-Moore wrote:
On Sat, May 9, 2026 at 2:53 PM Ethan Nelson-Moore
<enelsonmoore@xxxxxxxxx> wrote:
These lines do not even contain =.
Could someone look into why this happened?
The lines *after* the affected patch hunks do have an assignment in
the if condition.
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