summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-02-12 16:40:20 -0800
committerDavid S. Miller <davem@davemloft.net>2009-02-12 16:40:20 -0800
commitcff71e89a8bd1175962b603f88f333883726b851 (patch)
treebd2a612d64751dda371935f8b99f3cc1a9301af5
parent79d2b29e8ab2bd460b07ff783d679d6cd3032769 (diff)
downloadlinux-cff71e89a8bd1175962b603f88f333883726b851.tar.gz
linux-cff71e89a8bd1175962b603f88f333883726b851.tar.bz2
linux-cff71e89a8bd1175962b603f88f333883726b851.zip
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>
-rw-r--r--drivers/net/sun3lance.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sun3lance.c b/drivers/net/sun3lance.c
index 4bb8f72c65cc..e5beb299cbd0 100644
--- a/drivers/net/sun3lance.c
+++ b/drivers/net/sun3lance.c
@@ -428,7 +428,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;