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;