Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114779
b: refs/heads/master
c: f16fa28
h: refs/heads/master
i:
  114777: 3bac675
  114775: 724a97e
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 16, 2008
1 parent 2f0a6c9 commit 0d8a750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8ed22cad9ce16e3d8915ae75544a133c3050d96f
refs/heads/master: f16fa28f7b3d95e989fc64c8480e44c1bcf4bac3
6 changes: 6 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,12 @@ sub process {
while ($cond_ptr != $cond_lines) {
$cond_ptr = $cond_lines;

# If we see an #else/#elif then the code
# is not linear.
if ($s =~ /^\s*\#\s*(?:else|elif)/) {
$check = 0;
}

# Ignore:
# 1) blank lines, they should be at 0,
# 2) preprocessor lines, and
Expand Down

0 comments on commit 0d8a750

Please sign in to comment.