diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-02-03 06:39:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-02-03 06:39:02 +0100 |
commit | 46578a6913e6f5e69229561736b94c18c2e88ae4 (patch) | |
tree | 23db22f32e094dd971650528ea1d499bd2ab3015 /drivers/net/tulip/de2104x.c | |
parent | qlge: bugfix: Add missing netif_napi_del call. (diff) | |
download | linux-46578a6913e6f5e69229561736b94c18c2e88ae4.tar.xz linux-46578a6913e6f5e69229561736b94c18c2e88ae4.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/tulip/de2104x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c index d5d53b633cf8..0bf2114738be 100644 --- a/drivers/net/tulip/de2104x.c +++ b/drivers/net/tulip/de2104x.c @@ -392,7 +392,7 @@ static void de_rx (struct de_private *de) unsigned drop = 0; int rc; - while (rx_work--) { + while (--rx_work) { u32 status, len; dma_addr_t mapping; struct sk_buff *skb, *copy_skb; |