From 12e2b5c87a379eec81c5e2d80b67493689691082 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 6 Nov 2002 19:24:03 +0000 Subject: make perl_checker happy --- perl-install/detect_devices.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/detect_devices.pm') diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm index 365c42be7..f399efcef 100644 --- a/perl-install/detect_devices.pm +++ b/perl-install/detect_devices.pm @@ -653,7 +653,7 @@ sub whatUsbport() { # field. So use this field with priority for $model when it exists. if (($idstr =~ /MDL:([^;]+);/) || ($idstr =~ /MODEL:([^;]+);/)) { - $model = $1 if !$model; + $model ||= $1; } if ($idstr =~ /SKU:([^;]+);/) { $model = $1; -- cgit v1.2.1