aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8580.c
diff options
context:
space:
mode:
authorJassi Brar <jassi.brar@samsung.com>2010-10-19 03:04:21 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-10-19 06:07:10 -0400
commitc429ffbe038a649d121e6cecba5cf66777f39370 (patch)
treec999d2dbac67f7ee7d41b5cd82de21e346e50beb /sound/soc/codecs/wm8580.c
parent0589944661b9a9b9692f455fbbfce5eeda8fa7b6 (diff)
ASoC: WM8580: Remove useless assignment
The variable is not used anyway. Signed-off-by: Jassi Brar <jassi.brar@samsung.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/wm8580.c')
-rw-r--r--sound/soc/codecs/wm8580.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8580.c b/sound/soc/codecs/wm8580.c
index ad5987e6c9ca..a2e0ed59b376 100644
--- a/sound/soc/codecs/wm8580.c
+++ b/sound/soc/codecs/wm8580.c
@@ -548,11 +548,9 @@ static int wm8580_set_paif_dai_fmt(struct snd_soc_dai *codec_dai,
548 unsigned int fmt) 548 unsigned int fmt)
549{ 549{
550 struct snd_soc_codec *codec = codec_dai->codec; 550 struct snd_soc_codec *codec = codec_dai->codec;
551 struct wm8580_priv *wm8580 = snd_soc_codec_get_drvdata(codec);
552 unsigned int aifa; 551 unsigned int aifa;
553 unsigned int aifb; 552 unsigned int aifb;
554 int can_invert_lrclk; 553 int can_invert_lrclk;
555 int sysclk;
556 554
557 aifa = snd_soc_read(codec, WM8580_PAIF1 + codec_dai->driver->id); 555 aifa = snd_soc_read(codec, WM8580_PAIF1 + codec_dai->driver->id);
558 aifb = snd_soc_read(codec, WM8580_PAIF3 + codec_dai->driver->id); 556 aifb = snd_soc_read(codec, WM8580_PAIF3 + codec_dai->driver->id);
@@ -621,8 +619,6 @@ static int wm8580_set_paif_dai_fmt(struct snd_soc_dai *codec_dai,
621 return -EINVAL; 619 return -EINVAL;
622 } 620 }
623 621
624 sysclk = wm8580->sysclk[codec_dai->driver->id];
625
626 snd_soc_write(codec, WM8580_PAIF1 + codec_dai->driver->id, aifa); 622 snd_soc_write(codec, WM8580_PAIF1 + codec_dai->driver->id, aifa);
627 snd_soc_write(codec, WM8580_PAIF3 + codec_dai->driver->id, aifb); 623 snd_soc_write(codec, WM8580_PAIF3 + codec_dai->driver->id, aifb);
628 624