ALSA: aoa: Remove wrong i2c_set_clientdata in onyx_i2c_remove()

It does not make sense to set clientdata to onyx in onyx_i2c_remove()
as we are going to kfree onyx.
What we really want here is i2c_set_clientdata(client, NULL);
Since the i2c core will take care of it now, so this patch just removes it.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Axel Lin 2010-12-10 17:34:26 +08:00 committed by Takashi Iwai
parent 93430096f9
commit 5144c534d1

View File

@ -1114,7 +1114,6 @@ static int onyx_i2c_remove(struct i2c_client *client)
of_node_put(onyx->codec.node); of_node_put(onyx->codec.node);
if (onyx->codec_info) if (onyx->codec_info)
kfree(onyx->codec_info); kfree(onyx->codec_info);
i2c_set_clientdata(client, onyx);
kfree(onyx); kfree(onyx);
return 0; return 0;
} }