summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-05-22 10:29:26 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2016-01-02 14:59:15 +0100
commit98785e3ce53ad301882cc34a84f1a6beebc1a918 (patch)
tree13fb984be7c852bab9008e0baf327184de14f9fe /perl-install/harddrake/sound.pm
parentfd75d4a8b1ee8805beb0a7627a084d2b5a201b3b (diff)
downloaddrakx-98785e3ce53ad301882cc34a84f1a6beebc1a918.tar
drakx-98785e3ce53ad301882cc34a84f1a6beebc1a918.tar.gz
drakx-98785e3ce53ad301882cc34a84f1a6beebc1a918.tar.bz2
drakx-98785e3ce53ad301882cc34a84f1a6beebc1a918.tar.xz
drakx-98785e3ce53ad301882cc34a84f1a6beebc1a918.zip
simplify after previous commit
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm8
1 files changed, 3 insertions, 5 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index 6858d4fe0..08475c743 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -100,7 +100,6 @@ sub config {
$device->{description}),
[ get_any_driver_entry($in, $modules_conf, $driver, $device) ]);
} else {
- my $new_driver = $driver;
push @alternative, $driver;
my %des = modules::category2modules_and_description('multimedia/sound');
@@ -148,7 +147,7 @@ sub config {
},
);
- if ($new_driver eq 'unknown') {
+ if ($driver eq 'unknown') {
if ($in->ask_from_({
title => N("No alternative driver"),
messages => N("There's no known OSS/ALSA alternative driver for your sound card (%s) which currently uses \"%s\"",
@@ -163,9 +162,8 @@ sub config {
$device->{description} .
"\n\n" . N("Your card uses the %s\"%s\" driver", $driver),
},
- [
- @common,
- ]))
+ \@common,
+ ))
{
$write_config->();
}