summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 5e817d82f..f21abc636 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -708,7 +708,7 @@ sub pcmcia_controller_probe() {
sub real_pcmcia_probe() {
return if $::testing;
- c::pcmcia_probe() || (pcmcia_controller_probe())[0]->{driver};
+ c::pcmcia_probe() || first(map { $_->{driver} } pcmcia_controller_probe());
}
sub pcmcia_probe() {