Fixes the following warning: Use of uninitialized value $root in concatenation (.) or string at /path/to/checkpatch.pl line 764.
Unified · Split
| @@ -761,7 +761,7 @@ sub seed_camelcase_file { · 760 unmodified lines | ||
| 761 | 761 | sub is_maintained_obsolete { |
| 762 | 762 | my ($filename) = @_; |
| 763 | 763 | |
| 764 | − return 0 if (!(-e "$root/scripts/get_maintainer.pl")); | |
| 764 | + return 0 if (!$tree || !(-e "$root/scripts/get_maintainer.pl")); | |
| 765 | 765 | |
| 766 | 766 | my $status = `perl $root/scripts/get_maintainer.pl --status --nom --nol --nogit --nogit-fallback -f $filename 2>&1`; |
| 767 | 767 | |