diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 09:31:24 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2013-11-29 09:46:54 +0100 |
commit | 16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4 (patch) | |
tree | 6048db033b2af6f25dc0cd40a0b43679423d9103 /perl-install/harddrake/sound.pm | |
parent | a3892591195934279d9be528e9662cad5e4142b9 (diff) | |
download | drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.gz drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.bz2 drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.xz drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.zip |
simplify
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r-- | perl-install/harddrake/sound.pm | 5 |
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; |