summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Newton <will.newton@gmail.com>2008-08-12 15:39:14 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-17 14:41:07 -0700
commit825bee3a3340e720485ef4bde98cbb62e18cb547 (patch)
tree8b3544235efd0e9db6159b220d1f6847a416c1d5
parentc93eebbe75a560bb27dc1f09fb1ab7a31d04b990 (diff)
downloadblackbird-op-linux-825bee3a3340e720485ef4bde98cbb62e18cb547.tar.gz
blackbird-op-linux-825bee3a3340e720485ef4bde98cbb62e18cb547.zip
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>
-rw-r--r--drivers/usb/gadget/fsl_usb2_udc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c
index 99a420dbdbc0..204cf38c63fb 100644
--- a/drivers/usb/gadget/fsl_usb2_udc.c
+++ b/drivers/usb/gadget/fsl_usb2_udc.c
@@ -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);
}
/*
OpenPOWER on IntegriCloud