From: Sachin Kamat Date: Mon, 6 May 2013 08:01:35 +0000 (+0530) Subject: ALSA: mips/sgio2audio: Remove redundant platform_set_drvdata() X-Git-Tag: v3.10-rc1~14^2~4 X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-linux.git;a=commitdiff_plain;h=5a4ca9b3fa24f81298c13a27c03c6dd4087ca159 ALSA: mips/sgio2audio: Remove redundant platform_set_drvdata() Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Cc: Vivien Chappelier Signed-off-by: Takashi Iwai --- diff --git a/sound/mips/sgio2audio.c b/sound/mips/sgio2audio.c index 01a03efdc8b0..cfe99ae149fe 100644 --- a/sound/mips/sgio2audio.c +++ b/sound/mips/sgio2audio.c @@ -963,7 +963,6 @@ static int snd_sgio2audio_remove(struct platform_device *pdev) struct snd_card *card = platform_get_drvdata(pdev); snd_card_free(card); - platform_set_drvdata(pdev, NULL); return 0; }