From fa845d634ddf9621f473daaff6973d5e7789639e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 22 Mar 2004 13:42:56 +0000 Subject: (write_conf) simplify --- perl-install/modules.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install') diff --git a/perl-install/modules.pm b/perl-install/modules.pm index 59c89903f..f722f7540 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -312,9 +312,7 @@ sub write_conf() { } my @l; push @l, 'scsi_hostadapter' if !is_empty_array_ref($conf{scsi_hostadapter}{probeall}); - foreach (qw(bttv cx8800 saa7134)) { - push @l, $_ if detect_devices::matching_driver('^$_$'); - } + push @l, grep { detect_devices::matching_driver('^$_$') } qw(bttv cx8800 saa7134); my @l_26 = @l; if (my ($agp) = probe_category('various/agpgart')) { push @l_26, $agp->{driver}; -- cgit v1.2.1