]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
net: variables reach -1, but 0 tested
authorRoel Kluin <roel.kluin@gmail.com>
Tue, 3 Feb 2009 05:39:02 +0000 (21:39 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Feb 2009 05:39:02 +0000 (21:39 -0800)
commit46578a6913e6f5e69229561736b94c18c2e88ae4
tree23db22f32e094dd971650528ea1d499bd2ab3015
parent0047e5d240ede4e84c03bc9001375175900fd259
net: variables reach -1, but 0 tested

while (timeout--) { ... }

timeout becomes -1 if the loop isn't ended otherwise, not 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ibm_newemac/phy.c
drivers/net/smc911x.c
drivers/net/smsc9420.c
drivers/net/sungem.c
drivers/net/sunqe.c
drivers/net/tsi108_eth.c
drivers/net/tulip/de2104x.c