From: Will Newton Date: Tue, 12 Aug 2008 14:39:14 +0000 (+0100) Subject: fsl_usb2_udc: Uninline udc_reset_ep_queue. X-Git-Tag: upstream/snapshot3+hdmi~22050^2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=825bee3a3340e720485ef4bde98cbb62e18cb547;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Acked-by: Li Yang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/fsl_usb2_udc.c b/drivers/usb/gadget/fsl_usb2_udc.c index 99a420d..204cf38 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); } /*