linux-6.14/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.c bug report

From: David Binderman
Date: Wed Mar 26 2025 - 15:16:19 EST


Hello there,

Static analyser cppcheck says:

linux-6.14/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dma.c:298:24: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition]

Source code is

if (!config->sgls[i] | !config->sgls_nent[i])

Perhaps || was intended instead of | ?

Regards

David Binderman