summaryrefslogtreecommitdiffstats
path: root/convert/uniquify-modalias.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-04 01:07:23 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-04 01:07:23 +0000
commit45246d84a7744b2525fdde55eaaa23e82d75997b (patch)
treebc2d58fe41c9665c4760bd2dd36272e27d25941d /convert/uniquify-modalias.pl
parent7e54e6cead1af8b27784c105c08c9fc96fea1db6 (diff)
downloadldetect-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-xconvert/uniquify-modalias.pl7
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;