提交 e34ba212 编写于 作者: R Roel Kluin 提交者: Takashi Iwai

[ALSA] SOC: fix tests in cs4270_hw_params()

cs4270_hw_params does several times:

ret = snd_soc_write()
if (ret < 0)
	...

This only works when ret is signed.
Signed-off-by: NRoel Kluin <12o3l@tiscali.nl>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 9eb70e68
......@@ -372,7 +372,7 @@ static int cs4270_hw_params(struct snd_pcm_substream *substream,
struct snd_soc_device *socdev = rtd->socdev;
struct snd_soc_codec *codec = socdev->codec;
struct cs4270_private *cs4270 = codec->private_data;
unsigned int ret = 0;
int ret;
unsigned int i;
unsigned int rate;
unsigned int ratio;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册