From ad36ce8ba95a756ef558579c6e9ecedfae4dfd0b Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 5 Feb 2011 13:18:20 +0000 Subject: [PATCH] checkpatch.pl: don't complain about old lines with tabs Don't complain when the patch includes lines with tabs only in the hunk's untouched context. Signed-off-by: Blue Swirl --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 4fa06c002e..075b6149a3 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1495,7 +1495,7 @@ sub process { next if ($realfile !~ /\.(h|c|pl)$/); # in QEMU, no tabs are allowed - if ($rawline =~ /\t/) { + if ($rawline =~ /^\+.*\t/) { my $herevet = "$here\n" . cat_vet($rawline) . "\n"; ERROR("code indent should never use tabs\n" . $herevet); $rpt_cleaners = 1; -- 2.11.4.GIT