diff options
author | Blue Swirl | 2011-07-15 22:09:10 +0200 |
---|---|---|
committer | Blue Swirl | 2011-07-20 23:07:24 +0200 |
commit | d0510af26d854f714114a312eb4aed0649447eb2 (patch) | |
tree | 7acd61bdd744f33d938284f49d3459b8b2c275f1 /scripts | |
parent | tcg/mips: Fix regression caused by typo (copy + paste bug) (diff) | |
download | qemu-d0510af26d854f714114a312eb4aed0649447eb2.tar.gz qemu-d0510af26d854f714114a312eb4aed0649447eb2.tar.xz qemu-d0510af26d854f714114a312eb4aed0649447eb2.zip |
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 70a2111d19..3498425fff 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; |