Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167762
b: refs/heads/master
c: cc77cdc
h: refs/heads/master
v: v3
  • Loading branch information
Andy Whitcroft authored and Linus Torvalds committed Oct 29, 2009
1 parent 6bab212 commit 6b84659
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a974fdbe3fbb4b0f6d552579dc79ac237412c61
refs/heads/master: cc77cdca5209c1199deb33f3a83df191ac32f4d6
3 changes: 2 additions & 1 deletion trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,6 @@ sub process {
$linenr++;

my $rawline = $rawlines[$linenr - 1];
my $hunk_line = ($realcnt != 0);

#extract the line range in the file after the patch is applied
if ($line=~/^\@\@ -\d+(?:,\d+)? \+(\d+)(,(\d+))? \@\@/) {
Expand Down Expand Up @@ -1274,6 +1273,8 @@ sub process {
$realcnt--;
}

my $hunk_line = ($realcnt != 0);

#make up the handle for any error we report on this line
$prefix = "$filename:$realline: " if ($emacs && $file);
$prefix = "$filename:$linenr: " if ($emacs && !$file);
Expand Down

0 comments on commit 6b84659

Please sign in to comment.