diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-15 11:41:06 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-21 08:19:30 +0200 |
commit | 6de3c9e3f6b3eaf66859e1379b3f35dda781416b (patch) | |
tree | ee0a893af2cdbb736ec537e8cbb76732f7981a1c /sound/usb/line6 | |
parent | ALSA: hda/ca0132 - Add new SBZ quirk (diff) | |
download | linux-6de3c9e3f6b3eaf66859e1379b3f35dda781416b.tar.xz linux-6de3c9e3f6b3eaf66859e1379b3f35dda781416b.zip |
ALSA: usb-audio: Fix invalid NULL check in snd_emuusb_set_samplerate()
The quirk function snd_emuusb_set_samplerate() has a NULL check for
the mixer element, but this is useless in the current code. It used
to be a check against mixer->id_elems[unitid] but it was changed later
to the value after mixer_eleme_list_to_info() which is always non-NULL
due to the container_of() usage.
This patch fixes the check before the conversion.
While we're at it, correct a typo in the comment in the function,
too.
Fixes: 8c558076c740 ("ALSA: usb-audio: Clean up mixer element list traverse")
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6')
0 files changed, 0 insertions, 0 deletions