Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: usb-audio: remove redundant check on err

The check on err is redundant as both the true and false paths
end up on a break statement. Remove the redundant check.

Detected by CoverityScan, CID#1268773 ("Identical code for different
branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Colin Ian King and committed by
Takashi Iwai
7a6fc28b cdbc653a

-2
-2
sound/usb/mixer_quirks.c
··· 1849 1849 /* EMU0204 */ 1850 1850 case USB_ID(0x041e, 0x3f19): 1851 1851 err = snd_emu0204_controls_create(mixer); 1852 - if (err < 0) 1853 - break; 1854 1852 break; 1855 1853 1856 1854 case USB_ID(0x0763, 0x2030): /* M-Audio Fast Track C400 */