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

Commit 8af93191 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

USB: ohci-q.c: move assignment out of if () block



We should not be doing assignments within an if () block
so fix up the code to not do this.

change was created using Coccinelle.

Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
parent 71f46340
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -407,7 +407,8 @@ static struct ed *ed_get (


	spin_lock_irqsave (&ohci->lock, flags);
	spin_lock_irqsave (&ohci->lock, flags);


	if (!(ed = ep->hcpriv)) {
	ed = ep->hcpriv;
	if (!ed) {
		struct td	*td;
		struct td	*td;
		int		is_out;
		int		is_out;
		u32		info;
		u32		info;