summaryrefslogtreecommitdiffstats
path: root/perl-install/harddrake/sound.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-05-18 23:45:51 +0000
committerThierry Vignaud <tv@mageia.org>2011-05-18 23:45:51 +0000
commitff63c50d28f3f394052c9e1765686f1b45170b73 (patch)
treebefba18e69e306c98b9af2964ff1caf55e4c3bff /perl-install/harddrake/sound.pm
parent9322dc8e887b2dcc0f8370c6d6323b2152fcf234 (diff)
downloaddrakx-backup-do-not-use-ff63c50d28f3f394052c9e1765686f1b45170b73.tar
drakx-backup-do-not-use-ff63c50d28f3f394052c9e1765686f1b45170b73.tar.gz
drakx-backup-do-not-use-ff63c50d28f3f394052c9e1765686f1b45170b73.tar.bz2
drakx-backup-do-not-use-ff63c50d28f3f394052c9e1765686f1b45170b73.tar.xz
drakx-backup-do-not-use-ff63c50d28f3f394052c9e1765686f1b45170b73.zip
(write_config) more compact
Diffstat (limited to 'perl-install/harddrake/sound.pm')
-rw-r--r--perl-install/harddrake/sound.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index c5e4959e1..5bf5c55ab 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -310,9 +310,7 @@ sub switch {
my $old_value = $is_pulseaudio_enabled;
my $write_config = sub {
- if (!$is_pulseaudio_installed) {
- return;
- }
+ return if !$is_pulseaudio_installed;
set_pulseaudio($is_pulseaudio_enabled);
set_pulseaudio_glitchfree($is_pulseaudio_glitchfree_enabled);
set_PA_autospan($is_pulseaudio_enabled);