diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-04-20 14:47:19 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2021-04-20 16:59:10 +0200 |
commit | cfd577acb769301b19c31361d45ae1f145318b7a (patch) | |
tree | dc42218b7bfc6de9bcf90cf0de1ec7213ae205ac /lib/nmi_backtrace.c | |
parent | bd15b15523fd3197d1bb46403e02e92877a4f412 (diff) |
ALSA: usb: midi: don't return -ENOMEM when usb_urb_ep_type_check fails
Currently when the call to usb_urb_ep_type_check fails (returning -EINVAL)
the error return path returns -ENOMEM via the exit label "error". Other
uses of the same error exit label set the err variable to -ENOMEM but this
is not being used. I believe the original intent was for the error exit
path to return the value in err rather than the hard coded -ENOMEM, so
return this rather than the hard coded -ENOMEM.
Addresses-Coverity: ("Unused value")
Fixes: 738d9edcfd44 ("ALSA: usb-audio: Add sanity checks for invalid EPs")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20210420134719.381409-1-colin.king@canonical.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'lib/nmi_backtrace.c')
0 files changed, 0 insertions, 0 deletions