mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
ALSA: sb_mixer: missing return statement
The if condition here was supposed to return on error but the return statement is missing. The effect is that the ->mixername is set to "???" instead of "DT019X". Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
ff2354bc6e
commit
665ebe926e
@ -818,12 +818,14 @@ int snd_sbmixer_new(struct snd_sb *chip)
|
|||||||
return err;
|
return err;
|
||||||
break;
|
break;
|
||||||
case SB_HW_DT019X:
|
case SB_HW_DT019X:
|
||||||
if ((err = snd_sbmixer_init(chip,
|
err = snd_sbmixer_init(chip,
|
||||||
snd_dt019x_controls,
|
snd_dt019x_controls,
|
||||||
ARRAY_SIZE(snd_dt019x_controls),
|
ARRAY_SIZE(snd_dt019x_controls),
|
||||||
snd_dt019x_init_values,
|
snd_dt019x_init_values,
|
||||||
ARRAY_SIZE(snd_dt019x_init_values),
|
ARRAY_SIZE(snd_dt019x_init_values),
|
||||||
"DT019X")) < 0)
|
"DT019X");
|
||||||
|
if (err < 0)
|
||||||
|
return err;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
strcpy(card->mixername, "???");
|
strcpy(card->mixername, "???");
|
||||||
|
Loading…
Reference in New Issue
Block a user