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

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

usb: host: ehci-sched: remove prohibited spaces



This patch removes prohibited spaces before open parenthesis and open
brackets.

It also removes an assignment inside condition and unnecessary braces in
single statement block.

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 189b8ff0
Loading
Loading
Loading
Loading
+133 −132
Original line number Diff line number Diff line
@@ -958,7 +958,8 @@ static int intr_submit (
		goto done;
	}
	if (qh->qh_state == QH_STATE_IDLE) {
		if ((status = qh_schedule (ehci, qh)) != 0)
		status = qh_schedule(ehci, qh);
		if (status)
			goto done;
	}

@@ -1198,9 +1199,9 @@ iso_sched_alloc (unsigned packets, gfp_t mem_flags)

	size += packets * sizeof(struct ehci_iso_packet);
	iso_sched = kzalloc(size, mem_flags);
	if (likely (iso_sched != NULL)) {
	if (likely(iso_sched != NULL))
		INIT_LIST_HEAD(&iso_sched->td_list);
	}

	return iso_sched;
}