Skip to content

Commit

Permalink
fsl_usb2_udc: Uninline udc_reset_ep_queue.
Browse files Browse the repository at this point in the history
Uninline udc_reset_ep_queue and remove it's unused return value.

Signed-off-by: Will Newton <[email protected]>
Acked-by: Li Yang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
willnewton authored and gregkh committed Oct 17, 2008
1 parent c93eebb commit 825bee3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions drivers/usb/gadget/fsl_usb2_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1165,16 +1165,12 @@ static int ep0_prime_status(struct fsl_udc *udc, int direction)
return status;
}

static inline int udc_reset_ep_queue(struct fsl_udc *udc, u8 pipe)
static void udc_reset_ep_queue(struct fsl_udc *udc, u8 pipe)
{
struct fsl_ep *ep = get_ep_by_pipe(udc, pipe);

if (!ep->name)
return 0;

nuke(ep, -ESHUTDOWN);

return 0;
if (ep->name)
nuke(ep, -ESHUTDOWN);
}

/*
Expand Down

0 comments on commit 825bee3

Please sign in to comment.