diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 2 |
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; |