diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-01-25 20:12:03 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-01-25 20:12:03 +0100 |
commit | 1d955b7ef65c9ded4b0d8757a41472641f289806 (patch) | |
tree | 42ccd3729a77b9811e7581449f9c3ef67ddc96ea | |
parent | 2f2920cb9c63933d8e23bf1371dc975d4ea42589 (diff) | |
download | drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.gz drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.bz2 drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.xz drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.zip |
further simplify
-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; } |