From: Colin Ian King Date: Sat, 8 Feb 2020 16:31:32 +0000 (+0000) Subject: usb: gadget: remove redundant assignment to variable status X-Git-Tag: v5.7-rc1~192^2~31^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=09890fb1073bb503dc9995cec319bfde63b15a27;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/function/f_uac1_legacy.c b/drivers/usb/gadget/function/f_uac1_legacy.c index 6677ae932de05..349deae7cabd8 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);