contrib/checkpatch: remove the first character off a diff

Otherwise the leading whitespace checks won't work on patches.
This commit is contained in:
Lubomir Rintel 2018-09-24 13:54:46 +02:00
parent 587f006690
commit 0d3c6072f5

View file

@ -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;