Skip to content

Commit

Permalink
ALSA: keywest: Remove obsolete cleanup for clientdata
Browse files Browse the repository at this point in the history
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 <axel.lin@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Axel Lin authored and Takashi Iwai committed Sep 12, 2011
1 parent 5758960 commit 4712437
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/ppc/keywest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4712437

Please sign in to comment.