Commit de64c0ee authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 144dad99
...@@ -94,7 +94,7 @@ static unsigned short snd_cs46xx_codec_read(struct snd_cs46xx *chip, ...@@ -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 && if (snd_BUG_ON(codec_index != CS46XX_PRIMARY_CODEC_INDEX &&
codec_index != CS46XX_SECONDARY_CODEC_INDEX)) codec_index != CS46XX_SECONDARY_CODEC_INDEX))
return -EINVAL; return 0xffff;
chip->active_ctrl(chip, 1); chip->active_ctrl(chip, 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment