Skip to content

Commit

Permalink
ALSA: mips/hal2: Remove redundant platform_set_drvdata()
Browse files Browse the repository at this point in the history
Commit 0998d06 (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 <[email protected]>
Cc: Thomas Bogendoerfer <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Sachin Kamat authored and tiwai committed May 6, 2013
1 parent ff359b1 commit 3183520
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/mips/hal2.c
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,6 @@ static int hal2_remove(struct platform_device *pdev)
struct snd_card *card = platform_get_drvdata(pdev);

snd_card_free(card);
platform_set_drvdata(pdev, NULL);
return 0;
}

Expand Down

0 comments on commit 3183520

Please sign in to comment.