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

Commit fca8ab7e authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Felipe Balbi
Browse files

usb: gadget: renesas_usbhs: cleanup usbhs_endpoint_disable()

parent 3dd49268
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -822,7 +822,7 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,

	/*
	 * this function might be called manytimes by same hcd/ep
	 * in-endpoitn == out-endpoint if ep == dcp.
	 * in-endpoint == out-endpoint if ep == dcp.
	 */
	if (!uep)
		return;
@@ -831,7 +831,6 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
	hpriv	= usbhsh_hcd_to_hpriv(hcd);

	usbhsh_endpoint_free(hpriv, ep);
	ep->hcpriv = NULL;

	/*
	 * if there is no endpoint,