Skip to contentSkip to conversation

ASoC:isabelle:Fix warning message

PATCH In review [email protected] 2 participants 3 messages Jun 5, 2012 – Jun 8, 2012

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 ASoC:isabelle:Fix warning message

From: MR Swami Reddy <[email protected]>

Patch to fix the below warning message:
sound/soc/codecs/isabelle.c:1126: warning: 'isabelle_regmap' is used uninitialized in this function

---
 sound/soc/codecs/isabelle.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/codecs/isabelle.c +0 -2
index bcc77ef..a2efe1a 100644
@@ -1126,8 +1126,6 @@ static int __devinit isabelle_i2c_probe(struct i2c_client *i2c,
 	struct regmap *isabelle_regmap;
 	int ret = 0;
 
-	i2c_set_clientdata(i2c, isabelle_regmap);
-
 	isabelle_regmap = devm_regmap_init_i2c(i2c, &isabelle_regmap_config);
 	if (IS_ERR(isabelle_regmap)) {
 		ret = PTR_ERR(isabelle_regmap);
#1 lore raw
Quoted 4 lines · On Tue, Jun 05, 2012 at 08:11:21PM +0530, [email protected] wrote:

From: MR Swami Reddy <[email protected]>

Patch to fix the below warning message:
sound/soc/codecs/isabelle.c:1126: warning: 'isabelle_regmap' is used uninitialized in this function

I've applied Dan's version of this. As I've said before you should use subject lines appropraite to the subsystem...

author maintainer
#2 lore raw
Quoted 7 lines · Mark Brown
Quoted 4 lines · On Tue, Jun 05, 2012 at 08:11:21PM +0530, [email protected] wrote:

From: MR Swami Reddy <[email protected]>

Patch to fix the below warning message:
sound/soc/codecs/isabelle.c:1126: warning: 'isabelle_regmap' is used uninitialized in this function

I've applied Dan's version of this. As I've said before you should use subject lines appropraite to the subsystem...

OK. Thanks.

Thanks
Swami