mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 15:46:39 +07:00
ALSA: cs46xx - signedness bug in snd_cs46xx_codec_read()
This function returns its own error codes instead of normal negative error codes. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
144dad99ef
commit
de64c0ee7d
@ -94,7 +94,7 @@ static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip,
|
||||
|
||||
if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
|
||||
codec_index != CS46XX_SECONDARY_CODEC_INDEX))
|
||||
return -EINVAL;
|
||||
return 0xffff;
|
||||
|
||||
chip->active_ctrl(chip, 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user