diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-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 457f87460d6e..5382f7287397 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -408,6 +408,7 @@ sub ctx_statement_block { | |||
408 | # context. | 408 | # context. |
409 | if ($off >= $len) { | 409 | if ($off >= $len) { |
410 | for (; $remain > 0; $line++) { | 410 | for (; $remain > 0; $line++) { |
411 | last if (!defined $lines[$line]); | ||
411 | next if ($lines[$line] =~ /^-/); | 412 | next if ($lines[$line] =~ /^-/); |
412 | $remain--; | 413 | $remain--; |
413 | $loff = $len; | 414 | $loff = $len; |