projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d2b29
)
sun3: print when lance_open() fails
author
Roel Kluin
<roel.kluin@gmail.com>
Fri, 13 Feb 2009 00:40:20 +0000
(16:40 -0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 13 Feb 2009 00:40:20 +0000
(16:40 -0800)
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>
drivers/net/sun3lance.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/sun3lance.c
b/drivers/net/sun3lance.c
index 4bb8f72c65cceb3f4e20d20229c299ebca33abf0..e5beb299cbd0192fe3925c9ff7a15aa2c62cb0a3 100644
(file)
--- 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;