From 2c785938973c2543fc662b371435ee6f4e830634 Mon Sep 17 00:00:00 2001 From: Hidetoshi Seto Date: Fri, 5 Mar 2010 13:43:50 -0800 Subject: [PATCH] --- yaml --- r: 186301 b: refs/heads/master c: 42bdf74c95b6935f3c09a09ba4bead6cad11b540 h: refs/heads/master i: 186299: 4763df1f49b0d6879774946d6d729402aa617d3f v: v3 --- [refs] | 2 +- trunk/scripts/checkpatch.pl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index c8fffadb0d33..0121ca44970b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 8f53a9b80f011080555c498d2ca2dc6b1a77c42c +refs/heads/master: 42bdf74c95b6935f3c09a09ba4bead6cad11b540 diff --git a/trunk/scripts/checkpatch.pl b/trunk/scripts/checkpatch.pl index 309050f30874..3e4099a6df51 100755 --- a/trunk/scripts/checkpatch.pl +++ b/trunk/scripts/checkpatch.pl @@ -2182,8 +2182,10 @@ sub process { # Find out how long the conditional actually is. my @newlines = ($c =~ /\n/gs); my $cond_lines = 1 + $#newlines; + my $stat_real = ''; - my $stat_real = raw_line($linenr, $cond_lines); + $stat_real = raw_line($linenr, $cond_lines) + . "\n" if ($cond_lines); if (defined($stat_real) && $cond_lines > 1) { $stat_real = "[...]\n$stat_real"; }