Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47124373 authored by Axel Lin's avatar Axel Lin Committed by Takashi Iwai
Browse files

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: default avatarAxel Lin <axel.lin@gmail.com>
Reviewed-by: default avatarWolfram Sang <w.sang@pengutronix.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 57589603
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)