summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/modules.pm4
1 files changed, 1 insertions, 3 deletions
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};