Commit f2c19c2f authored by Jerome Forissier's avatar Jerome Forissier Committed by Linus Torvalds

checkpatch: don't try to get maintained status when --no-tree is given

Fixes the following warning:

  Use of uninitialized value $root in concatenation (.) or string at /path/to/ line 764.

Link: default avatarJerome Forissier <>
Reviewed-by: default avatarBrian Norris <>
Acked-by: default avatarJoe Perches <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent a2ef9471
......@@ -761,7 +761,7 @@ sub seed_camelcase_file {
sub is_maintained_obsolete {
my ($filename) = @_;
return 0 if (!(-e "$root/scripts/"));
return 0 if (!$tree || !(-e "$root/scripts/"));
my $status = `perl $root/scripts/ --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment