Skip to content

Commit

Permalink
[ALSA] SOC: fix tests in cs4270_hw_params()
Browse files Browse the repository at this point in the history
cs4270_hw_params does several times:

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

This only works when ret is signed.

Signed-off-by: Roel Kluin <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Roel Kluin authored and tiwai committed Apr 24, 2008
1 parent 9eb70e6 commit e34ba21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/cs4270.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e34ba21

Please sign in to comment.