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

Commit d078c6e4 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Greg Kroah-Hartman
Browse files

usb: host: ehci-sched: remove unnecessary braces



This patch removes unnecessary braces in single statement blocks at the
same time as replaces the if statement with a ternary conditional.

Tested by compilation only.
Caught by checkpatch.

Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ee2a1d24
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -1060,11 +1060,7 @@ iso_stream_init(
	epnum = usb_pipeendpoint(urb->pipe);
	epnum = usb_pipeendpoint(urb->pipe);
	is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0;
	is_input = usb_pipein(urb->pipe) ? USB_DIR_IN : 0;
	maxp = usb_endpoint_maxp(&urb->ep->desc);
	maxp = usb_endpoint_maxp(&urb->ep->desc);
	if (is_input) {
	buf1 = is_input ? 1 << 11 : 0;
		buf1 = (1 << 11);
	} else {
		buf1 = 0;
	}


	/* knows about ITD vs SITD */
	/* knows about ITD vs SITD */
	if (dev->speed == USB_SPEED_HIGH) {
	if (dev->speed == USB_SPEED_HIGH) {