diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-04-30 11:33:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-10 16:01:11 +0200 |
commit | 8af9319198f04f10aa63f751fb0bfbf4f97be6eb (patch) | |
tree | 7f5b47e68a5a8ca3872be17b987cb4a6f62d7fdc /drivers/usb/host | |
parent | 71f46340738322246285a40e25c1c3457a7d986b (diff) | |
download | op-kernel-dev-8af9319198f04f10aa63f751fb0bfbf4f97be6eb.zip op-kernel-dev-8af9319198f04f10aa63f751fb0bfbf4f97be6eb.tar.gz |
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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/ohci-q.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-q.c b/drivers/usb/host/ohci-q.c index 1463c39..f7d561e 100644 --- a/drivers/usb/host/ohci-q.c +++ b/drivers/usb/host/ohci-q.c @@ -407,7 +407,8 @@ static struct ed *ed_get ( spin_lock_irqsave (&ohci->lock, flags); - if (!(ed = ep->hcpriv)) { + ed = ep->hcpriv; + if (!ed) { struct td *td; int is_out; u32 info; |