Skip to content

Commit

Permalink
usb: gadget: renesas_usbhs: cleanup usbhs_endpoint_disable()
Browse files Browse the repository at this point in the history
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 12, 2011
1 parent 3dd4926 commit fca8ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/usb/renesas_usbhs/mod_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit fca8ab7

Please sign in to comment.