diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-09-24 13:54:46 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2018-10-07 15:46:02 +0200 |
commit | 3fab960d8cbca27acc130c9dec1726b53ee0cc43 (patch) | |
tree | f8527e230d931c4b62795c601db9b8461b4c85c8 | |
parent | 37212ce9b64be91c597ea7515e4a9fa1a18151b1 (diff) |
contrib/checkpatch: remove the first character off a diff
Otherwise the leading whitespace checks won't work on patches.
-rwxr-xr-x | contrib/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index 289dad82e..d6b3c4451 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; |