mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 10:36:51 +07:00
usb: gadget: renesas_usbhs: cleanup usbhs_endpoint_disable()
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
3dd492686c
commit
fca8ab7ee1
@ -822,7 +822,7 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* this function might be called manytimes by same hcd/ep
|
* 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)
|
if (!uep)
|
||||||
return;
|
return;
|
||||||
@ -831,7 +831,6 @@ static void usbhsh_endpoint_disable(struct usb_hcd *hcd,
|
|||||||
hpriv = usbhsh_hcd_to_hpriv(hcd);
|
hpriv = usbhsh_hcd_to_hpriv(hcd);
|
||||||
|
|
||||||
usbhsh_endpoint_free(hpriv, ep);
|
usbhsh_endpoint_free(hpriv, ep);
|
||||||
ep->hcpriv = NULL;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* if there is no endpoint,
|
* if there is no endpoint,
|
||||||
|
Loading…
Reference in New Issue
Block a user