aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 309050f30874..3e4099a6df51 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2182,8 +2182,10 @@ sub process {
2182 # Find out how long the conditional actually is. 2182 # Find out how long the conditional actually is.
2183 my @newlines = ($c =~ /\n/gs); 2183 my @newlines = ($c =~ /\n/gs);
2184 my $cond_lines = 1 + $#newlines; 2184 my $cond_lines = 1 + $#newlines;
2185 my $stat_real = '';
2185 2186
2186 my $stat_real = raw_line($linenr, $cond_lines); 2187 $stat_real = raw_line($linenr, $cond_lines)
2188 . "\n" if ($cond_lines);
2187 if (defined($stat_real) && $cond_lines > 1) { 2189 if (defined($stat_real) && $cond_lines > 1) {
2188 $stat_real = "[...]\n$stat_real"; 2190 $stat_real = "[...]\n$stat_real";
2189 } 2191 }