Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f510b5a1 authored by Colin Ian King's avatar Colin Ian King Committed by Felipe Balbi
Browse files

usb: gadget: remove redundant self assignment



The assignment ret = ret is redundant and can be removed.

Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent a08f5dbf
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;