]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sc6000: Assign vport directly on card's private_data
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 16:28:37 +0000 (18:28 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 16:31:24 +0000 (18:31 +0200)
commitbfc0714f2d42e84f77a10fcbaa40db786995f109
treebde92c8a564b51b036d2247287e4874041528219
parent4be9d555e77cb6b03ef8eea5513bf912c8b70e24
ALSA: sc6000: Assign vport directly on card's private_data

sc6000 driver tries to allocate an extra pointer for keeping the vport
address and point it over card->private_data.  But, this indirect
access is utterly superfluous, and we can keep the vport address
directly in card->private_data instead.  This will simply the code and
avoid confusion.

Link: https://lore.kernel.org/r/20210720162837.6026-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/sc6000.c