Skip to contentSkip to conversation

ASoc: tpa6130a2: Remove unnecessary variable

PATCH Applied Ilkka Koskinen 3 participants 3 messages Jan 4, 2010

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

PATCH 1/1 ASoc: tpa6130a2: Remove unnecessary variable

---
 sound/soc/codecs/tpa6130a2.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
sound/soc/codecs/tpa6130a2.c +0 -4
index 0eb33d4..8e98ccf 100644
@@ -267,12 +267,8 @@ static const struct snd_kcontrol_new tpa6130a2_controls[] = {
  */
 static void tpa6130a2_channel_enable(u8 channel, int enable)
 {
-	struct	tpa6130a2_data *data;
 	u8	val;
 
-	BUG_ON(tpa6130a2_client == NULL);
-	data = i2c_get_clientdata(tpa6130a2_client);
-
 	if (enable) {
 		/* Enable channel */
 		/* Enable amplifier */
Signature · 1 line
1.6.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 12 lines · On Monday 04 January 2010 14:30:03 Koskinen Ilkka (Nokia-D/Tampere) wrote:
---
 sound/soc/codecs/tpa6130a2.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
sound/soc/codecs/tpa6130a2.c +0 -0
index 0eb33d4..8e98ccf 100644
@@ -267,12 +267,8 @@ static const struct snd_kcontrol_new
 tpa6130a2_controls[] = { */
 static void tpa6130a2_channel_enable(u8 channel, int enable)

sound/soc/codecs/tpa6130a2.c static const struct snd_kcontrol_new · line 274

Quoted 10 lines
sound/soc/codecs/tpa6130a2.c +0 -4
 {
-	struct	tpa6130a2_data *data;
 	u8	val;
 
-	BUG_ON(tpa6130a2_client == NULL);
-	data = i2c_get_clientdata(tpa6130a2_client);
-
 	if (enable) {
 		/* Enable channel */
 		/* Enable amplifier */

Yes, I think this is a leftover from some earlier code that I had. Good catch!