projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b947c12
)
checkpatch: Fix bracing false positives on #else
author
Jan Kiszka
<jan.kiszka@siemens.com>
Fri, 21 Jan 2011 17:19:40 +0000
(18:19 +0100)
committer
Blue Swirl
<blauwirbel@gmail.com>
Fri, 21 Jan 2011 17:32:45 +0000
(17:32 +0000)
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index 55ef439865a5c8924e6b319566886a62903e8e24..4fa06c002ec14d10f26dbd8a3410018056a2dc49 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-2536,7
+2536,8
@@
sub process {
}
}
if (!defined $suppress_ifbraces{$linenr - 1} &&
- $line =~ /\b(if|while|for|else)\b/) {
+ $line =~ /\b(if|while|for|else)\b/ &&
+ $line !~ /\#\s*else/) {
my $allowed = 0;
# Check the pre-context.