diff options
author | roel kluin <roel.kluin@gmail.com> | 2009-12-27 04:26:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-04 06:42:52 +0100 |
commit | e145b98484f5c7444151e90cc0853f14e6d396a4 (patch) | |
tree | 10824fdd06874a38bf5ee96f5f9f8337d5817e27 | |
parent | drivers/net : Correct the size argument to kzalloc (diff) | |
download | linux-e145b98484f5c7444151e90cc0853f14e6d396a4.tar.xz linux-e145b98484f5c7444151e90cc0853f14e6d396a4.zip |
atarilance: timeout ignored in lance_open()
With `while (--i > 0)' i reaches 0 after the loop, so upon timeout the
error was not issued.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/atarilance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/atarilance.c b/drivers/net/atarilance.c index c5721cb38265..cc9ed8643910 100644 --- a/drivers/net/atarilance.c +++ b/drivers/net/atarilance.c @@ -663,7 +663,7 @@ static int lance_open( struct net_device *dev ) while (--i > 0) if (DREG & CSR0_IDON) break; - if (i < 0 || (DREG & CSR0_ERR)) { + if (i <= 0 || (DREG & CSR0_ERR)) { DPRINTK( 2, ( "lance_open(): opening %s failed, i=%d, csr0=%04x\n", dev->name, i, DREG )); DREG = CSR0_STOP; |