summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2013-11-29 09:31:24 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2013-11-29 09:46:54 +0100
commit16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4 (patch)
tree6048db033b2af6f25dc0cd40a0b43679423d9103 /perl-install
parenta3892591195934279d9be528e9662cad5e4142b9 (diff)
downloaddrakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar
drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.gz
drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.bz2
drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.tar.xz
drakx-16af9628dc9ba7a8b32aae17c70c60c3d76a7bc4.zip
simplify
Diffstat (limited to 'perl-install')
-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;