diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2008-03-08 05:07:26 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:22 -0400 |
commit | c67582b195fb5deb24808ebbafb41045f1a61425 (patch) | |
tree | 05d9fbc6ab870fe2a883091ca7f38f716cd9df31 /sound/spi | |
parent | b419f346994d4ba082244fb1327754bc839a4d8a (diff) |
[ALSA] at73c213: fix error checking for clk API
The clk_round_rate() and clk_set_rate() will return int, so not store thier
return value to unsigned long variable. This bug hides real error on these
API.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/spi')
-rw-r--r-- | sound/spi/at73c213.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index b8860b26fc62..c1b0b9dff819 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c | |||
@@ -133,7 +133,8 @@ static struct snd_pcm_hardware snd_at73c213_playback_hw = { | |||
133 | static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip) | 133 | static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip) |
134 | { | 134 | { |
135 | unsigned long ssc_rate = clk_get_rate(chip->ssc->clk); | 135 | unsigned long ssc_rate = clk_get_rate(chip->ssc->clk); |
136 | unsigned long dac_rate_new, ssc_div, status; | 136 | unsigned long dac_rate_new, ssc_div; |
137 | int status; | ||
137 | unsigned long ssc_div_max, ssc_div_min; | 138 | unsigned long ssc_div_max, ssc_div_min; |
138 | int max_tries; | 139 | int max_tries; |
139 | 140 | ||