Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: isp116x-hcd.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.

CC: Olav Kongas <ok@artecdesign.ee>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Felipe Balbi <balbi@ti.com>

+2 -1
+2 -1
drivers/usb/host/isp116x-hcd.c
··· 500 500 if (isp116x->periodic_count) { 501 501 isp116x->fmindex = index = 502 502 (isp116x->fmindex + 1) & (PERIODIC_SIZE - 1); 503 - if ((load = isp116x->load[index])) { 503 + load = isp116x->load[index]; 504 + if (load) { 504 505 /* Bring all int transfers for this frame 505 506 into the active queue */ 506 507 isp116x->atl_active = last_ep =