ALSA: keywest: Remove obsolete cleanup for clientdata

The i2c core will clear the clientdata pointer automatically.
We don't have to set the `data' field to NULL in remove() or
if probe() failed anymore.

Signed-off-by: Axel Lin <[email protected]>
Reviewed-by: Wolfram Sang <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
Axel Lin 2011-09-09 17:50:52 +08:00 • committed by Takashi Iwai
commit 47124373b5

View file

@ -82,7 +82,6 @@ static int keywest_attach_adapter(struct i2c_adapter *adapter)
static int keywest_remove(struct i2c_client *client)
{
i2c_set_clientdata(client, NULL);
if (! keywest_ctx)
return 0;
if (client == keywest_ctx->client)