X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;h=9c98100303774cd228ad83f3ff7bfcaeeb7af6fd;hb=11dcc75dba5bf8b69c4612de10e366c4e04cb123;hp=61090e0ff613aefeb5429c26d4efc7775ad97739;hpb=f080480488028bcc25357f85e8ae54ccc3bb7173;p=karo-tx-linux.git diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 61090e0ff613..9c9810030377 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3289,6 +3289,7 @@ sub process { } } if (!defined $suppress_whiletrailers{$linenr} && + defined($stat) && defined($cond) && $line =~ /\b(?:if|while|for)\s*\(/ && $line !~ /^.\s*#/) { my ($s, $c) = ($stat, $cond);