X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=scripts%2Fcheckpatch.pl;h=9c98100303774cd228ad83f3ff7bfcaeeb7af6fd;hb=a5c21dcefa1c3d759457a604b3cfc4af29c8713f;hp=61090e0ff613aefeb5429c26d4efc7775ad97739;hpb=af2e2f328052082f58f041d574ed50c7f21c598f;p=~andy%2Flinux diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 61090e0ff61..9c981003037 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);