Skip to contentSkip to conversation

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

PATCH New Peter Korsgaard 1 participant 1 message Jun 24, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: tlv320aic32x4: aic32x4_set_dai_fmt(): drop unneded register access

There's no point in reading the IFACE2 register when the result isn't used, so drop it.

---
 sound/soc/codecs/tlv320aic32x4.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/tlv320aic32x4.c +0 -1
index 89e41d2..630367f 100644
@@ -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);
Signature · 1 line
2.0.0