Revision ff01b9163655ace76b29b7ff2f56b25c32f795da authored by Roel Kluin on 03 February 2009, 07:19:50 UTC, committed by David S. Miller on 03 February 2009, 07:19:50 UTC
while (limit--)
	if (test())
		break;

if (limit <= 0)
	goto test_failed;

In the last iteration, limit is decremented after the test to 0.
If just thereafter test() succeeds and a break occurs, the goto
still occurs because limit is 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 46578a6
History
File Mode Size
CREDITS -rw-r--r-- 7.2 KB
URB.txt -rw-r--r-- 9.4 KB
WUSB-Design-overview.txt -rw-r--r-- 17.8 KB
acm.txt -rw-r--r-- 4.9 KB
anchors.txt -rw-r--r-- 2.6 KB
authorization.txt -rw-r--r-- 2.6 KB
callbacks.txt -rw-r--r-- 4.7 KB
dma.txt -rw-r--r-- 6.2 KB
ehci.txt -rw-r--r-- 9.6 KB
error-codes.txt -rw-r--r-- 5.9 KB
gadget_printer.txt -rw-r--r-- 10.7 KB
gadget_serial.txt -rw-r--r-- 13.1 KB
hiddev.txt -rw-r--r-- 8.9 KB
hotplug.txt -rw-r--r-- 6.3 KB
iuu_phoenix.txt -rw-r--r-- 2.7 KB
linux.inf -rw-r--r-- 6.2 KB
misc_usbsevseg.txt -rw-r--r-- 1.5 KB
mtouchusb.txt -rw-r--r-- 2.8 KB
ohci.txt -rw-r--r-- 1.5 KB
persist.txt -rw-r--r-- 7.4 KB
power-management.txt -rw-r--r-- 23.8 KB
proc_usb_info.txt -rw-r--r-- 14.7 KB
rio.txt -rw-r--r-- 4.3 KB
usb-help.txt -rw-r--r-- 495 bytes
usb-serial.txt -rw-r--r-- 18.0 KB
usbmon.txt -rw-r--r-- 13.9 KB
wusb-cbaf -rw-r--r-- 3.2 KB

back to top