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

Commit b49f1133 authored by Raluca Oncioiu's avatar Raluca Oncioiu Committed by Greg Kroah-Hartman
Browse files

Staging: octeon-usb: Remove unnecessary brackets



Remove brackets from single line branches of if statements.
Break long lines.

Signed-off-by: default avatarRaluca Oncioiu <raluca.oncioiu91@gmail.com>
Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1da69aa9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -925,12 +925,12 @@ static int cvmx_usb_enable(struct cvmx_usb_state *usb)
		return 0;

	/* If there is nothing plugged into the port then fail immediately */
	if (!usb->usbcx_hprt.s.prtconnsts) {
	if (!usb->usbcx_hprt.s.prtconnsts)
		return -ETIMEDOUT;
	}

	/* Program the port reset bit to start the reset process */
	USB_SET_FIELD32(CVMX_USBCX_HPRT(usb->index), union cvmx_usbcx_hprt, prtrst, 1);
	USB_SET_FIELD32(CVMX_USBCX_HPRT(usb->index), union cvmx_usbcx_hprt,
			prtrst, 1);

	/*
	 * Wait at least 50ms (high speed), or 10ms (full speed) for the reset