The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* checkpatch false positive for "do not use assignment in if condition"
@ 2026-05-09 21:53 Ethan Nelson-Moore
  2026-05-10  0:20 ` Ethan Nelson-Moore
  0 siblings, 1 reply; 3+ messages in thread
From: Ethan Nelson-Moore @ 2026-05-09 21:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andy Whitcroft, Joe Perches, Lukas Bulwahn, Dwaipayan Ray

Hello,

I got a strange error from checkpatch while preparing this patch for submission:
https://lore.kernel.org/all/20260509214622.38319-1-enelsonmoore@gmail.com/

ERROR: do not use assignment in if condition
#37: FILE: sound/soc/fsl/eukrea-tlv320.c:145:
+       if (of_machine_is_compatible("eukrea,cpuimx27") ||

ERROR: do not use assignment in if condition
#48: FILE: sound/soc/fsl/eukrea-tlv320.c:162:
+       } else if (of_machine_is_compatible("eukrea,cpuimx25") ||

These lines do not even contain =.
Could someone look into why this happened?

Have a nice day!
Ethan

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-10 19:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-09 21:53 checkpatch false positive for "do not use assignment in if condition" Ethan Nelson-Moore
2026-05-10  0:20 ` Ethan Nelson-Moore
2026-05-10 19:31   ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox