From 45246d84a7744b2525fdde55eaaa23e82d75997b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 4 May 2012 01:07:23 +0000 Subject: simplify --- convert/uniquify-modalias.pl | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'convert') diff --git a/convert/uniquify-modalias.pl b/convert/uniquify-modalias.pl index d3968152..c964f9a6 100755 --- a/convert/uniquify-modalias.pl +++ b/convert/uniquify-modalias.pl @@ -93,10 +93,9 @@ sub print_module { @modules or return; - my @category_deferred_modules; - foreach (map { list_modules::module2category($_->[1]) } @modules) { - push @category_deferred_modules, @{$category_deferred_modules{$_} || []} - } + my @category_deferred_modules = map { + @{$category_deferred_modules{$_} || []}; + } map { list_modules::module2category($_->[1]) } @modules; @modules > 1 || @category_deferred_modules or return; -- cgit v1.2.1