diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-09-09 05:50:52 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-09-12 04:36:12 -0400 |
commit | 47124373b59e43fd07cbf7b44d9288f19c1d5a93 (patch) | |
tree | 0532cb76c2ee0f1475c7102b2ca79e4b2e3d0394 /sound/ppc | |
parent | 5758960353d179f0541226764a1e47eff01666ff (diff) |
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 <axel.lin@gmail.com>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/ppc')
-rw-r--r-- | sound/ppc/keywest.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) | |||
82 | 82 | ||
83 | static int keywest_remove(struct i2c_client *client) | 83 | static int keywest_remove(struct i2c_client *client) |
84 | { | 84 | { |
85 | i2c_set_clientdata(client, NULL); | ||
86 | if (! keywest_ctx) | 85 | if (! keywest_ctx) |
87 | return 0; | 86 | return 0; |
88 | if (client == keywest_ctx->client) | 87 | if (client == keywest_ctx->client) |