]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: control: Allow NULL passed to snd_ctl_remove()
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 Jun 2024 10:05:23 +0000 (12:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 18 Jun 2024 10:51:35 +0000 (12:51 +0200)
commite946455ce116fd822718d6acd874f3f4cf306520
tree92e593444c7d79a3426729e3a735e8efc9473a73
parent6278056e42d953e207e2afd416be39d09ed2d496
ALSA: control: Allow NULL passed to snd_ctl_remove()

There are lots of code checking NULL for kcontrol passed to
snd_ctl_remove() in the caller side.  Let's make snd_ctl_remove()
accepting the NULL kcontrol instead a la free(), so that we can clean
up the caller side.

Link: https://lore.kernel.org/20240617100529.6667-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/control.c