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
1.Intro -rw-r--r-- 14.6 KB
2.Process -rw-r--r-- 21.8 KB
3.Early-stage -rw-r--r-- 9.8 KB
4.Coding -rw-r--r-- 19.7 KB
5.Posting -rw-r--r-- 13.3 KB
6.Followthrough -rw-r--r-- 11.5 KB
7.AdvancedTopics -rw-r--r-- 9.4 KB
8.Conclusion -rw-r--r-- 3.1 KB

back to top