sun3: print when lance_open() fails

With while (--i > 0) { ... } i reaches 0; print when lance_open() fails

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Roel Kluin
2009-02-12 16:40:20 -08:00
committed by David S. Miller
parent 79d2b29e8a
commit cff71e89a8

View File

@@ -428,7 +428,7 @@ static int lance_open( struct net_device *dev )
while (--i > 0) while (--i > 0)
if (DREG & CSR0_IDON) if (DREG & CSR0_IDON)
break; 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", DPRINTK( 2, ( "lance_open(): opening %s failed, i=%d, csr0=%04x\n",
dev->name, i, DREG )); dev->name, i, DREG ));
DREG = CSR0_STOP; DREG = CSR0_STOP;