aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/scripts/checkpatch.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index 0a119f1..bdd8408 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -1589,7 +1589,7 @@ sub process {
}
# Check for absolute kernel paths.
- if ($tree) {
+ if ($tree && $line =~ /^[^-]/) {
while ($line =~ m{(?:^|\s)(/\S*)}g) {
my $file = $1;