summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 6a48c302e..c24e84fd7 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -128,10 +128,7 @@ sub switch {
my ($in, $modules_conf, $device) = @_;
my $driver = $device->{current_driver} || $device->{driver};
- my @alternative;
- if ($driver ne $device->{driver}) {
- push @alternative, $device->{driver};
- }
+ my @alternative = $driver ne $device->{driver} ? $device->{driver} : ();
if (@alternative) {
my $new_driver = $driver;
push @alternative, $driver;