summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/detect_devices.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/detect_devices.pm b/perl-install/detect_devices.pm
index 77fa5c388..ae6fdc2a7 100644
--- a/perl-install/detect_devices.pm
+++ b/perl-install/detect_devices.pm
@@ -857,9 +857,8 @@ sub suggest_mount_point {
my $name = $e->{media_type};
if (member($e->{media_type}, 'hd', 'fd')) {
if (exists $e->{usb_driver}) {
- return usb2removable($e) || 'removable';
- }
- if (isZipDrive($e)) {
+ $name = usb2removable($e) || 'removable';
+ } elsif (isZipDrive($e)) {
$name = 'zip';
} elsif ($e->{media_type} eq 'fd') {
$name = 'floppy';