OSDN Git Service

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)
commit9b7843d1e125dca0d6ed0af9e8dd709d41eb25ad
treebde92c8a564b51b036d2247287e4874041528219
parentdca18a94d3ad94201183f64d89149553c9cec95d
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