summaryrefslogtreecommitdiffstats
path: root/perl-install/detect_devices.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-11-06 16:47:00 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-11-06 16:47:00 +0000
commit3021e910718c4702abe831c7aa53e8a7bf8b135f (patch)
treee342014ee05783e78a37b18970bd6168610c30f8 /perl-install/detect_devices.pm
parent371749c6a25c7aec0874e21d68ec212b2bf2dab7 (diff)
downloaddrakx-backup-do-not-use-3021e910718c4702abe831c7aa53e8a7bf8b135f.tar
drakx-backup-do-not-use-3021e910718c4702abe831c7aa53e8a7bf8b135f.tar.gz
drakx-backup-do-not-use-3021e910718c4702abe831c7aa53e8a7bf8b135f.tar.bz2
drakx-backup-do-not-use-3021e910718c4702abe831c7aa53e8a7bf8b135f.tar.xz
drakx-backup-do-not-use-3021e910718c4702abe831c7aa53e8a7bf8b135f.zip
please perl_checker:
- local'ize $_ before doing while (<...>) - use "foreach" instead of "for" - remove unneeded parentheses on the right side of infix if/foreach/unless
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r--perl-install/detect_devices.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index f1543f46c..2c8c71f3d 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -617,8 +617,8 @@ sub whatUsbport() {
foreach $i (0..15) {
my $port = "/dev/usb/lp$i";
my $realport = devices::make($port);
- next if (!$realport);
- next if (! -r $realport);
+ next if !$realport;
+ next if ! -r $realport;
open PORT, $realport or do next;
my $idstr = "";
# Calculation of IOCTL function 0x84005001 (to get device ID