From: Atsushi Nemoto Date: Sat, 8 Mar 2008 10:07:26 +0000 (+0100) Subject: [ALSA] at73c213: fix error checking for clk API X-Git-Tag: v2.6.26-rc1~1087^2~140 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=c67582b195fb5deb24808ebbafb41045f1a61425;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Andrew Morton Signed-off-by: Takashi Iwai --- diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index b8860b26fc6..c1b0b9dff81 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c @@ -133,7 +133,8 @@ static struct snd_pcm_hardware snd_at73c213_playback_hw = { static int snd_at73c213_set_bitrate(struct snd_at73c213 *chip) { unsigned long ssc_rate = clk_get_rate(chip->ssc->clk); - unsigned long dac_rate_new, ssc_div, status; + unsigned long dac_rate_new, ssc_div; + int status; unsigned long ssc_div_max, ssc_div_min; int max_tries;