diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-07-11 11:16:20 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-07-11 12:02:06 +0200 |
commit | 26910ebdd79557aea75a6a6357e0a6ec577091d1 (patch) | |
tree | ce225d382a5edfdcd6e91931d85de261d91c3777 | |
parent | 24082ad09e0a5d81bccef33a0ad4f3cd2c75c1f9 (diff) | |
download | NetworkManager-26910ebdd79557aea75a6a6357e0a6ec577091d1.tar.gz |
checkpatch: reset line counter on next file
-rwxr-xr-x | contrib/scripts/checkpatch.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index aa791dc214..baca2371c5 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -97,6 +97,7 @@ if ($is_patch) { $line = $2; } elsif ($is_file) { $line_no = $.; + $. = 0 if eof; # This is a line from full C file $check_line = 1; $line = $_; |