From: Colin Ian King Date: Mon, 25 Jul 2016 21:57:36 +0000 (+0100) Subject: usb: gadget: remove redundant self assignment X-Git-Tag: v4.14-rc1~2393^2~22^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f510b5a1d00bba1c908a4886e4c3309aca0abc8c;p=platform%2Fkernel%2Flinux-rpi.git usb: gadget: remove redundant self assignment The assignment ret = ret is redundant and can be removed. Reviewed-by: Peter Chen Signed-off-by: Colin Ian King Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/udc/core.c b/drivers/usb/gadget/udc/core.c index 934f838..d8e6686 100644 --- a/drivers/usb/gadget/udc/core.c +++ b/drivers/usb/gadget/udc/core.c @@ -107,10 +107,8 @@ int usb_ep_enable(struct usb_ep *ep) goto out; ret = ep->ops->enable(ep, ep->desc); - if (ret) { - ret = ret; + if (ret) goto out; - } ep->enabled = true;