summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2016-01-25 20:12:03 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-25 20:12:03 +0100
commit1d955b7ef65c9ded4b0d8757a41472641f289806 (patch)
tree42ccd3729a77b9811e7581449f9c3ef67ddc96ea /perl-install
parent2f2920cb9c63933d8e23bf1371dc975d4ea42589 (diff)
downloaddrakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar
drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.gz
drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.bz2
drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.tar.xz
drakx-1d955b7ef65c9ded4b0d8757a41472641f289806.zip
further simplify
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/detect_devices.pm4
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;
}