Skip to content

Commit

Permalink
ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c…
Browse files Browse the repository at this point in the history
…_remove

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Axel Lin authored and Mark Brown committed Oct 24, 2011
1 parent 1d533de commit 753ddf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/codecs/wm8996.c
Original file line number Diff line number Diff line change
Expand Up @@ -3144,7 +3144,7 @@ static __devexit int wm8996_i2c_remove(struct i2c_client *client)
snd_soc_unregister_codec(&client->dev);
if (wm8996->pdata.ldo_ena > 0)
gpio_free(wm8996->pdata.ldo_ena);
kfree(i2c_get_clientdata(client));
kfree(wm8996);
return 0;
}

Expand Down

0 comments on commit 753ddf5

Please sign in to comment.