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.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/harddrake/sound.pm b/perl-install/harddrake/sound.pm
index bcff4dae9..325f5e07b 100644
--- a/perl-install/harddrake/sound.pm
+++ b/perl-install/harddrake/sound.pm
@@ -129,11 +129,7 @@ sub load { modules::load(@_) if $::isStandalone || $blacklisted }
sub get_alternative {
my ($driver) = @_;
- if ($alsa2oss{$driver}) {
- $alsa2oss{$driver};
- } elsif ($oss2alsa{$driver}) {
- $oss2alsa{$driver}
- } else { undef }
+ $alsa2oss{$driver} || $oss2alsa{$driver};
}