diff options
-rw-r--r-- | kernel/modules.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/modules.pl b/kernel/modules.pl index 26194a69e..afcc50549 100644 --- a/kernel/modules.pl +++ b/kernel/modules.pl @@ -130,7 +130,7 @@ sub remove_unneeded_modules { my @all = list_modules::all_modules(); my @all_with_deps = map { dependencies_closure($_) } @all; - my %wanted_modules = map { "$_.$ext" => 1 } @all_with_deps; + my %wanted_modules = map {; return "$_.$ext" => 1 } @all_with_deps; foreach (all("all.kernels/$kern_ver/modules")) { $wanted_modules{$_} or unlink "all.kernels/$kern_ver/modules/$_"; } |