Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: aloop: 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 <sachin.kamat@linaro.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Sachin Kamat and committed by
Takashi Iwai
5ed5824b 54d672e9

-1
-1
sound/drivers/aloop.c
··· 1183 1183 static int loopback_remove(struct platform_device *devptr) 1184 1184 { 1185 1185 snd_card_free(platform_get_drvdata(devptr)); 1186 - platform_set_drvdata(devptr, NULL); 1187 1186 return 0; 1188 1187 } 1189 1188