summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-02-08 17:31:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-10 20:15:27 +0100
commit334fb94c39e0ab5bb8fa61ff6e82fe6545b45ed7 (patch)
tree423ad11ffff0fda09d1f8e293b3f43c051369771 /drivers/usb/gadget
parentusb: typec: ucsi: remove redundant assignment to variable num (diff)
downloadlinux-334fb94c39e0ab5bb8fa61ff6e82fe6545b45ed7.tar.xz
linux-334fb94c39e0ab5bb8fa61ff6e82fe6545b45ed7.zip
usb: gadget: remove redundant assignment to variable status
Variable status is being assigned with a value that is never read, it is assigned a new value immediately afterwards. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20200208163132.29592-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/function/f_uac1_legacy.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/gadget/function/f_uac1_legacy.c b/drivers/usb/gadget/function/f_uac1_legacy.c
index 6677ae932de0..349deae7cabd 100644
--- a/drivers/usb/gadget/function/f_uac1_legacy.c
+++ b/drivers/usb/gadget/function/f_uac1_legacy.c
@@ -752,8 +752,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
audio->out_ep = ep;
audio->out_ep->desc = &as_out_ep_desc;
- status = -ENOMEM;
-
/* copy descriptors, and track endpoint copies */
status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL,
NULL);