[alsa-devel] [PATCH] Remove unused variable from tlv320aic23 codec
Remove codec var from tlv320aic23_set_dai_sysclk, it is assigned to but never read.
Signed-off-by: Richard A. Holden III aciddeath@gmail.com
Cc: Jaroslav Kysela perex@perex.cz Cc: Takashi Iwai tiwai@suse.de Cc: Liam Girdwood lrg@slimlogic.co.uk Cc: Mark Brown broonie@opensource.wolfsonmicro.com Cc: alsa-devel@alsa-project.org --- sound/soc/codecs/tlv320aic23.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index 44308da..45395d0 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c @@ -421,8 +421,6 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai, static int tlv320aic23_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, unsigned int freq, int dir) { - struct snd_soc_codec *codec = codec_dai->codec; - switch (freq) { case 12000000: return 0;
On Thu, Nov 20, 2008 at 11:03:23AM -0700, Richard A. Holden III wrote:
Remove codec var from tlv320aic23_set_dai_sysclk, it is assigned to but never read.
This does not apply - it looks like you've generated it against code from before commit 26df91c3 (ASoC: TLV320AIC23B Support more sample rates) from 5th November which rewrote all this code.
At Thu, 20 Nov 2008 11:03:23 -0700, Richard A. Holden III wrote:
Remove codec var from tlv320aic23_set_dai_sysclk, it is assigned to but never read.
Signed-off-by: Richard A. Holden III aciddeath@gmail.com
Cc: Jaroslav Kysela perex@perex.cz Cc: Takashi Iwai tiwai@suse.de Cc: Liam Girdwood lrg@slimlogic.co.uk Cc: Mark Brown broonie@opensource.wolfsonmicro.com Cc: alsa-devel@alsa-project.org
sound/soc/codecs/tlv320aic23.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-)
This is already fixed in the upstream, but pretty differently.
Takashi
diff --git a/sound/soc/codecs/tlv320aic23.c b/sound/soc/codecs/tlv320aic23.c index 44308da..45395d0 100644 --- a/sound/soc/codecs/tlv320aic23.c +++ b/sound/soc/codecs/tlv320aic23.c @@ -421,8 +421,6 @@ static int tlv320aic23_set_dai_fmt(struct snd_soc_dai *codec_dai, static int tlv320aic23_set_dai_sysclk(struct snd_soc_dai *codec_dai, int clk_id, unsigned int freq, int dir) {
- struct snd_soc_codec *codec = codec_dai->codec;
- switch (freq) { case 12000000: return 0;
-- 1.5.6.4
Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
participants (3)
-
Mark Brown
-
Richard A. Holden III
-
Takashi Iwai