diff mbox

ASoC: tlv320aic32x4: aic32x4_set_dai_fmt(): drop unneded register access

Message ID 1403646008-19930-1-git-send-email-peter@korsgaard.com (mailing list archive)
State New, archived
Headers show

Commit Message

Peter Korsgaard June 24, 2014, 9:40 p.m. UTC
There's no point in reading the IFACE2 register when the result isn't used,
so drop it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 sound/soc/codecs/tlv320aic32x4.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/tlv320aic32x4.c b/sound/soc/codecs/tlv320aic32x4.c
index 89e41d2..630367f 100644
--- a/sound/soc/codecs/tlv320aic32x4.c
+++ b/sound/soc/codecs/tlv320aic32x4.c
@@ -336,7 +336,6 @@  static int aic32x4_set_dai_fmt(struct snd_soc_dai *codec_dai, unsigned int fmt)
 
 	iface_reg_1 = snd_soc_read(codec, AIC32X4_IFACE1);
 	iface_reg_1 = iface_reg_1 & ~(3 << 6 | 3 << 2);
-	iface_reg_2 = snd_soc_read(codec, AIC32X4_IFACE2);
 	iface_reg_2 = 0;
 	iface_reg_3 = snd_soc_read(codec, AIC32X4_IFACE3);
 	iface_reg_3 = iface_reg_3 & ~(1 << 3);