From 47124373b59e43fd07cbf7b44d9288f19c1d5a93 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 9 Sep 2011 17:50:52 +0800 Subject: 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 Reviewed-by: Wolfram Sang Signed-off-by: Takashi Iwai --- sound/ppc/keywest.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sound/ppc') diff --git a/sound/ppc/keywest.c b/sound/ppc/keywest.c index 8f064c7ce745..4080becf4cef 100644 --- a/sound/ppc/keywest.c +++ b/sound/ppc/keywest.c @@ -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) -- cgit