Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6e4411f authored by Will Newton's avatar Will Newton Committed by Greg Kroah-Hartman
Browse files

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: default avatarWill Newton <will.newton@gmail.com>
Acked-by: default avatarLi Yang <leoli@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 9c94155e
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;