ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove
Subsystems (3)
PATCH 1/1 ASoC: wm8996: Avoid a redundant i2c_get_clientdata call in wm8996_i2c_remove
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/wm8996.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8996.c +1 -1
@@ -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 ; }
Signature · 1 line
1.7.5.4
Quoted 10 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>---
sound/soc/codecs/wm8996.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)sound/soc/codecs/wm8996.c +0
-0
sound/soc/codecs/wm8996.c static __devexit int wm8996_i2c_remove(struct i2c_client *client) · line 3150
Quoted 8 lines
sound/soc/codecs/wm8996.c +1
-1@@ -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; }
Acked-by Liam Girdwood <[email protected]>
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
Mark Brown
AppliedQuoted 1 line · Axel Lin
Signed-off-by Axel Lin <[email protected]>
Applied, thanks.