diff options
-rwxr-xr-x | scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 561f41ef531f..35aecb3b013c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1690,7 +1690,7 @@ sub fix_inserted_deleted_lines { | |||
1690 | foreach my $old_line (@{$linesRef}) { | 1690 | foreach my $old_line (@{$linesRef}) { |
1691 | my $save_line = 1; | 1691 | my $save_line = 1; |
1692 | my $line = $old_line; #don't modify the array | 1692 | my $line = $old_line; #don't modify the array |
1693 | if ($line =~ /^(?:\+\+\+\|\-\-\-)\s+\S+/) { #new filename | 1693 | if ($line =~ /^(?:\+\+\+|\-\-\-)\s+\S+/) { #new filename |
1694 | $delta_offset = 0; | 1694 | $delta_offset = 0; |
1695 | } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk | 1695 | } elsif ($line =~ /^\@\@ -\d+,\d+ \+\d+,\d+ \@\@/) { #new hunk |
1696 | $range_last_linenr = $new_linenr; | 1696 | $range_last_linenr = $new_linenr; |