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
.gitignore -rw-r--r-- 35 bytes
Makefile -rw-r--r-- 7.2 KB
debugobjects.tmpl -rw-r--r-- 13.8 KB
deviceiobook.tmpl -rw-r--r-- 11.0 KB
filesystems.tmpl -rw-r--r-- 13.0 KB
gadget.tmpl -rw-r--r-- 29.9 KB
genericirq.tmpl -rw-r--r-- 15.6 KB
kernel-api.tmpl -rw-r--r-- 21.0 KB
kernel-hacking.tmpl -rw-r--r-- 42.8 KB
kernel-locking.tmpl -rw-r--r-- 66.0 KB
kgdb.tmpl -rw-r--r-- 18.7 KB
libata.tmpl -rw-r--r-- 46.9 KB
librs.tmpl -rw-r--r-- 8.0 KB
lsm.tmpl -rw-r--r-- 12.0 KB
mac80211.tmpl -rw-r--r-- 10.5 KB
mcabook.tmpl -rw-r--r-- 3.0 KB
mtdnand.tmpl -rw-r--r-- 44.6 KB
networking.tmpl -rw-r--r-- 2.9 KB
procfs-guide.tmpl -rw-r--r-- 19.5 KB
procfs_example.c -rw-r--r-- 4.8 KB
rapidio.tmpl -rw-r--r-- 4.6 KB
regulator.tmpl -rw-r--r-- 9.8 KB
s390-drivers.tmpl -rw-r--r-- 5.4 KB
scsi.tmpl -rw-r--r-- 14.5 KB
sh.tmpl -rw-r--r-- 2.6 KB
stylesheet.xsl -rw-r--r-- 361 bytes
uio-howto.tmpl -rw-r--r-- 24.4 KB
usb.tmpl -rw-r--r-- 38.4 KB
writing_usb_driver.tmpl -rw-r--r-- 17.0 KB
z8530book.tmpl -rw-r--r-- 14.7 KB

back to top