Commit 334fb94c authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200208163132.29592-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85798543
...@@ -752,8 +752,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f) ...@@ -752,8 +752,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
audio->out_ep = ep; audio->out_ep = ep;
audio->out_ep->desc = &as_out_ep_desc; audio->out_ep->desc = &as_out_ep_desc;
status = -ENOMEM;
/* copy descriptors, and track endpoint copies */ /* copy descriptors, and track endpoint copies */
status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL, status = usb_assign_descriptors(f, f_audio_desc, f_audio_desc, NULL,
NULL); NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment