From: Axel Lin Date: Mon, 24 Oct 2011 03:31:12 +0000 (+0800) Subject: ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove X-Git-Tag: MMI-PSA29.97-13-9~16612^2~524 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=753ddf52153b60be924109df3bebab0cd60b3297;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove Signed-off-by: Axel Lin Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c index 645c980d6b80..32324c9ddc37 100644 --- a/sound/soc/codecs/wm8996.c +++ b/sound/soc/codecs/wm8996.c @@ -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; }