mirror of
https://github.com/fail0verflow/switch-linux.git
synced 2025-05-04 02:34:21 -04:00
fsl_usb2_udc: Uninline udc_reset_ep_queue.
Uninline udc_reset_ep_queue and remove it's unused return value. Signed-off-by: Will Newton <will.newton@gmail.com> Acked-by: Li Yang <leoli@freescale.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
c93eebbe75
commit
825bee3a33
1 changed files with 3 additions and 7 deletions
|
@ -1165,16 +1165,12 @@ static int ep0_prime_status(struct fsl_udc *udc, int direction)
|
||||||
return status;
|
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);
|
struct fsl_ep *ep = get_ep_by_pipe(udc, pipe);
|
||||||
|
|
||||||
if (!ep->name)
|
if (ep->name)
|
||||||
return 0;
|
|
||||||
|
|
||||||
nuke(ep, -ESHUTDOWN);
|
nuke(ep, -ESHUTDOWN);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue