diff options
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/detect_devices.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index ffd7de214..526ff17fc 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -1153,9 +1153,7 @@ Cache the result of c::dmi_probe() (aka C<dmidecode>) and return the list of ite sub dmi_probe() { state $dmi_probe; - if (arch() !~ /86/) { - return; - } + return if arch() !~ /86/; $dmi_probe ||= $> ? [] : [ c::dmi_probe() ]; @$dmi_probe; } |