Re: [PATCH] ASoC: wm8996: Avoid a redundant i2c_get_clientdata callin wm8996_i2c_remove

From: Girdwood, Liam
Date: Mon Oct 24 2011 - 08:04:55 EST


On 24 October 2011 04:31, Axel Lin <axel.lin@xxxxxxxxx> wrote:
> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
> ---
> Âsound/soc/codecs/wm8996.c | Â Â2 +-
> Â1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/sound/soc/codecs/wm8996.c b/sound/soc/codecs/wm8996.c
> index 645c980..32324c9 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;
> Â}
>

Acked-by: Liam Girdwood <lrg@xxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/