summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2018-09-24 13:54:46 +0200
committerLubomir Rintel <lkundrak@v3.sk>2018-10-07 15:46:02 +0200
commit0d3c6072f5b99d55029dcd7b0f156709c6b2e7df (patch)
treef8527e230d931c4b62795c601db9b8461b4c85c8 /contrib
parent587f00669012b86edf5fc56723be051b7f5572d0 (diff)
downloadNetworkManager-0d3c6072f5b99d55029dcd7b0f156709c6b2e7df.tar.gz
contrib/checkpatch: remove the first character off a diff
Otherwise the leading whitespace checks won't work on patches.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/scripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl
index 289dad82e9..d6b3c4451a 100755
--- a/contrib/scripts/checkpatch.pl
+++ b/contrib/scripts/checkpatch.pl
@@ -93,7 +93,7 @@ if ($is_patch) {
new_file ($2);
next;
}
- /^([ \+])(.*)/ or next;
+ s/^([ \+])(.*)/$2/ or next;
$line_no++;
$check_line = $1 eq '+';
$line = $2;