coccicheck: fix script

This commit is contained in:
Boris Faure 2022-06-19 22:30:54 +02:00
parent 1650d61466
commit 69eb930f97
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: EAA9CD729F522998
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ div_round_up.cocci
HAS_ERROR=0
for f in $COCCI_FILES; do
OPTIONS=""
if [ "$COCCI_FILES" = "div_round_up.cocci" ]; then
if [ "$f" = "div_round_up.cocci" ]; then
OPTIONS="--defined DIV_ROUND_UP"
fi
CMD="spatch --timeout 200 --very-quiet --cocci-file scripts/coccinelle/$f --include-headers --dir $DIR $OPTIONS"