Skip to content

Commit

Permalink
ALSA: usb-audio: remove redundant check on err
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
Colin Ian King authored and tiwai committed Jun 4, 2018
1 parent cdbc653 commit 7a6fc28
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/usb/mixer_quirks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7a6fc28

Please sign in to comment.