Skip to content

Commit 1a6b1f4

Browse files
committed
check_checkpatch: Fix if evaluation
Wrong precedence caused errors/warnings to be ignored. Fixes: b29abaf ("check_checkpatch: Ignore /boot/dts/, reset ignored") Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent ca778a5 commit 1a6b1f4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ check_checkpatch() {
134134
else
135135
# Ignore some cases:
136136
prefix=
137-
if [[ "$msg" =~ ^"Macros with complex values should be enclosed in parentheses" ]] &&
138-
[[ "$file" =~ "/dt-bindings/" ]] ||
139-
[[ "$file" =~ "/boot/dts/" ]]; then
137+
if [[ "$msg" =~ ^"Macros with complex values should be enclosed in parentheses" &&
138+
( "$file" =~ "/dt-bindings/" ||
139+
"$file" =~ "/boot/dts/" ) ]]; then
140140
prefix=ignored
141141
((ignored++))
142142
else

0 commit comments

Comments
 (0)