diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2011-07-15 20:09:10 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-07-20 21:07:24 +0000 |
commit | d0510af26d854f714114a312eb4aed0649447eb2 (patch) | |
tree | 7acd61bdd744f33d938284f49d3459b8b2c275f1 /scripts | |
parent | ea15fb067212bb79291f9b76c5c76d45b62f58e1 (diff) | |
download | hqemu-d0510af26d854f714114a312eb4aed0649447eb2.zip hqemu-d0510af26d854f714114a312eb4aed0649447eb2.tar.gz |
checkpatch: Fix bracing false positives on #if
789f88d0b21fedfd4251d56bb7a9fbfbda7a4ac7 only fixed #else,
fix also #if.
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 70a2111..3498425 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2539,6 +2539,7 @@ sub process { } if (!defined $suppress_ifbraces{$linenr - 1} && $line =~ /\b(if|while|for|else)\b/ && + $line !~ /\#\s*if/ && $line !~ /\#\s*else/) { my $allowed = 0; |