Skip to content
Commit a3725414 authored by Christopher Friedt's avatar Christopher Friedt Committed by Chris Friedt
Browse files

scripts: checkpatch.pl: fix constant comparison false positives



Comparisons that have constants on both side of the operator
were getting flagged incorrectly. Adjust the check so that
pure constant comparisons are not flagged, reducing false
positives.

WARNING:CONSTANT_COMPARISON: \
  Comparisons should place the constant on the right side of \
  the test
+BUILD_ASSERT(CONFIG_MAX_PTHREAD_COUNT == \
  CONFIG_MAX_PTHREAD_MUTEX_COUNT - 1);

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 248324b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment