diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-05-04 01:07:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-05-04 01:07:23 +0000 |
commit | 45246d84a7744b2525fdde55eaaa23e82d75997b (patch) | |
tree | bc2d58fe41c9665c4760bd2dd36272e27d25941d /convert/uniquify-modalias.pl | |
parent | 7e54e6cead1af8b27784c105c08c9fc96fea1db6 (diff) | |
download | ldetect-lst-45246d84a7744b2525fdde55eaaa23e82d75997b.tar ldetect-lst-45246d84a7744b2525fdde55eaaa23e82d75997b.tar.gz ldetect-lst-45246d84a7744b2525fdde55eaaa23e82d75997b.tar.bz2 ldetect-lst-45246d84a7744b2525fdde55eaaa23e82d75997b.tar.xz ldetect-lst-45246d84a7744b2525fdde55eaaa23e82d75997b.zip |
simplify
Diffstat (limited to 'convert/uniquify-modalias.pl')
-rwxr-xr-x | convert/uniquify-modalias.pl | 7 |
1 files changed, 3 insertions, 4 deletions
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; |