]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
fsl_usb2_udc: Uninline udc_reset_ep_queue.
authorWill Newton <will.newton@gmail.com>
Tue, 12 Aug 2008 14:39:14 +0000 (15:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:07 +0000 (14:41 -0700)
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>
drivers/usb/gadget/fsl_usb2_udc.c

index 99a420dbdbc038dd51f6a2b4f2c996aa376824a2..204cf38c63fbec040f08f66c7f676b232a8a8789 100644 (file)
@@ -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);
 }
 
 /*