]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
fsl_usb2_udc: Remove check for udc == NULL in dr_controller_setup.
authorWill Newton <will.newton@imgtec.com>
Tue, 12 Aug 2008 14:39:08 +0000 (15:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:05 +0000 (14:41 -0700)
Remove check for udc == NULL in dr_controller_setup. All callers of
this function have already dereferenced udc at some point.

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 d140e1b1c9061c554b00132f791b330ffef27dff..3b96aac27af920d7c93f298778665b43171aaf7c 100644 (file)
@@ -185,10 +185,6 @@ static int dr_controller_setup(struct fsl_udc *udc)
        unsigned long timeout;
 #define FSL_UDC_RESET_TIMEOUT 1000
 
-       /* before here, make sure dr_regs has been initialized */
-       if (!udc)
-               return -EINVAL;
-
        /* Stop and reset the usb controller */
        tmp = fsl_readl(&dr_regs->usbcmd);
        tmp &= ~USB_CMD_RUN_STOP;