Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114763
b: refs/heads/master
c: f055663
h: refs/heads/master
i:
  114761: ad7909d
  114759: 959402c
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 16, 2008
1 parent 1e1e88f commit 6b1c67d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2a1bc5d5c5096f2dfb6f8b18f39ecb718f101535
refs/heads/master: f055663c5853aa1d9f4c86351a4637462a0b9041
6 changes: 3 additions & 3 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2214,10 +2214,10 @@ sub process {
}
if ($level == 0 && $block =~ /^\s*\{/ && !$allowed) {
my $herectx = $here . "\n";;
my $end = $linenr + statement_rawlines($block) - 1;
my $cnt = statement_rawlines($block);

for (my $ln = $linenr - 1; $ln < $end; $ln++) {
$herectx .= $rawlines[$ln] . "\n";;
for (my $n = 0; $n < $cnt; $n++) {
$herectx .= raw_line($linenr, $n) . "\n";;
}

WARN("braces {} are not necessary for single statement blocks\n" . $herectx);
Expand Down

0 comments on commit 6b1c67d

Please sign in to comment.