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)
commit52c3e317a857091fd746e15179a637f32be4d337
treeb95d100714f3fb2666b693a72516d3b3d57b9aa0
parent68e9fde245591d18200f8a9054cac22339437adb
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