fsl_usb2_udc: Remove check for udc == NULL in dr_controller_setup.
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>
This commit is contained in:
parent
9c94155ea0
commit
f6e4411fe7
|
@ -185,10 +185,6 @@ static int dr_controller_setup(struct fsl_udc *udc)
|
||||||
unsigned long timeout;
|
unsigned long timeout;
|
||||||
#define FSL_UDC_RESET_TIMEOUT 1000
|
#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 */
|
/* Stop and reset the usb controller */
|
||||||
tmp = fsl_readl(&dr_regs->usbcmd);
|
tmp = fsl_readl(&dr_regs->usbcmd);
|
||||||
tmp &= ~USB_CMD_RUN_STOP;
|
tmp &= ~USB_CMD_RUN_STOP;
|
||||||
|
|
Loading…
Reference in New Issue