summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-02-05 13:18:20 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-02-05 13:18:20 +0000
commitad36ce8ba95a756ef558579c6e9ecedfae4dfd0b (patch)
treedfcec112b488db39e313b7694ad1721f9be78e1e /scripts
parenta2fdc8907bee6eb572fea992be7126e1b616d5bf (diff)
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 <blauwirbel@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
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;