projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4612cb
)
cassini: fix off by one
author
Dan Carpenter
<error27@gmail.com>
Tue, 2 Mar 2010 22:22:41 +0000
(22:22 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 3 Mar 2010 09:04:39 +0000
(
01:04
-0800)
There are only 6 link_modes.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cassini.c
patch
|
blob
|
history
diff --git
a/drivers/net/cassini.c
b/drivers/net/cassini.c
index 7cbcfb0ade1c176ac84290dec4bcd8ce06fe83f5..9bd155e4111c6ef5e771319c38066ad3f9a1c7f0 100644
(file)
--- a/
drivers/net/cassini.c
+++ b/
drivers/net/cassini.c
@@
-5072,7
+5072,7
@@
static int __devinit cas_init_one(struct pci_dev *pdev,
INIT_WORK(&cp->reset_task, cas_reset_task);
/* Default link parameters */
- if (link_mode >= 0 && link_mode <
=
6)
+ if (link_mode >= 0 && link_mode < 6)
cp->link_cntl = link_modes[link_mode];
else
cp->link_cntl = BMCR_ANENABLE;