diff options
Diffstat (limited to 'perl-install/detect_devices.pm')
-rw-r--r-- | perl-install/detect_devices.pm | 4 |
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 |