diff options
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index c71a0fae84df..5ffc940399be 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl | |||
@@ -1240,7 +1240,8 @@ sub process { | |||
1240 | $realfile =~ s@^([^/]*)/@@; | 1240 | $realfile =~ s@^([^/]*)/@@; |
1241 | 1241 | ||
1242 | $p1_prefix = $1; | 1242 | $p1_prefix = $1; |
1243 | if ($tree && $p1_prefix ne '' && -e "$root/$p1_prefix") { | 1243 | if (!$file && $tree && $p1_prefix ne '' && |
1244 | -e "$root/$p1_prefix") { | ||
1244 | WARN("patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n"); | 1245 | WARN("patch prefix '$p1_prefix' exists, appears to be a -p0 patch\n"); |
1245 | } | 1246 | } |
1246 | 1247 | ||