Skip to contentSkip to conversation

ASoC: max98090: Remove unused control_data field

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Mar 14, 2014

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

PATCH 1/1 ASoC: max98090: Remove unused control_data field

The driver assigns a value to the control_data field of the driver's state struct, but never reads it again. Which means it is unused and can be removed.

---
 sound/soc/codecs/max98090.c | 1 -
 sound/soc/codecs/max98090.h | 1 -
 2 files changed, 2 deletions(-)
sound/soc/codecs/max98090.c +0 -1
index 390fba1..1baa12c 100644
@@ -2343,7 +2343,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c,
 
 	max98090->devtype = id->driver_data;
 	i2c_set_clientdata(i2c, max98090);
-	max98090->control_data = i2c;
 	max98090->pdata = i2c->dev.platform_data;
 	max98090->irq = i2c->irq;
 
sound/soc/codecs/max98090.h +0 -1
index 7e103f2..1a4e233 100644
@@ -1523,7 +1523,6 @@ struct max98090_priv {
 	struct regmap *regmap;
 	struct snd_soc_codec *codec;
 	enum max98090_type devtype;
-	void *control_data;
 	struct max98090_pdata *pdata;
 	unsigned int sysclk;
 	unsigned int bclk;
Signature · 1 line
1.8.0
maintainer Applied
#1 lore raw
Quoted 2 lines · Lars-Peter Clausen

The driver assigns a value to the control_data field of the driver's state struct, but never reads it again. Which means it is unused and can be removed.

Applied, thanks.