diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-06-04 12:49:19 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-04 13:52:47 +0200 |
commit | 7a6fc28b162bc0e48d8cef72be8226e11300317b (patch) | |
tree | 15b49db8568c4dda557ca82f1f1e350a48bc4764 | |
parent | cdbc653a04ee692a7105a96e8dd6055d9971d45c (diff) | |
download | op-kernel-dev-7a6fc28b162bc0e48d8cef72be8226e11300317b.zip op-kernel-dev-7a6fc28b162bc0e48d8cef72be8226e11300317b.tar.gz |
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>
-rw-r--r-- | sound/usb/mixer_quirks.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c index 4149543..e82a72f 100644 --- a/sound/usb/mixer_quirks.c +++ b/sound/usb/mixer_quirks.c @@ -1849,8 +1849,6 @@ int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer) /* EMU0204 */ case USB_ID(0x041e, 0x3f19): err = snd_emu0204_controls_create(mixer); - if (err < 0) - break; break; case USB_ID(0x0763, 0x2030): /* M-Audio Fast Track C400 */ |