]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects
authorTakashi Iwai <tiwai@suse.de>
Thu, 22 Aug 2019 06:23:10 +0000 (08:23 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 22 Aug 2019 08:36:00 +0000 (10:36 +0200)
commit22339da53e449b202a863d999d2786c8319e3cab
treeb95d100714f3fb2666b693a72516d3b3d57b9aa0
parent3689c172107d6e92bc0822eacf55b9b23940a512
ALSA: usb-audio: Unify the release of usb_mixer_elem_info objects

Instead of the direct kfree() calls, introduce a new local helper to
release the usb_mixer_elem_info object.  This will be extended to do
more than a single kfree() in the later patches.

Also, use the standard goto instead of multiple calls in
parse_audio_selector_unit() error paths.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c