[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20080307.184538.00937695.nemoto@toshiba-tops.co.jp>
Date: Fri, 07 Mar 2008 18:45:38 +0900 (JST)
From: Atsushi Nemoto <anemo@....ocn.ne.jp>
To: linux-kernel@...r.kernel.org
Cc: Hans-Christian Egtvedt <hcegtvedt@...el.com>,
Haavard Skinnemoen <hskinnemoen@...el.com>,
Andrew Victor <avictor.za@...il.com>
Subject: [PATCH] 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@....ocn.ne.jp>
---
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c
index 89d6e9c..d130552 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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists