projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e039d8
)
ksz884x: fix return value of netdev_set_eeprom
author
Jens Rottmann
<JRottmann@LiPPERTEmbedded.de>
Tue, 23 Mar 2010 04:23:50 +0000
(
04:23
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 23 Mar 2010 20:06:15 +0000
(13:06 -0700)
ksz884x: fix return value of netdev_set_eeprom
netdev_set_eeprom() confused ethtool by just returning 1 on error
instead of a proper -EINVAL.
Signed-off-by: Jens Rottmann <JRottmann@LiPPERTEmbedded.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ksz884x.c
patch
|
blob
|
history
diff --git
a/drivers/net/ksz884x.c
b/drivers/net/ksz884x.c
index
0f59099
..
6c5327a
100644
(file)
--- a/
drivers/net/ksz884x.c
+++ b/
drivers/net/ksz884x.c
@@
-6322,7
+6322,7
@@
static int netdev_set_eeprom(struct net_device *dev,
int len;
if (eeprom->magic != EEPROM_MAGIC)
- return
1
;
+ return
-EINVAL
;
len = (eeprom->offset + eeprom->len + 1) / 2;
for (i = eeprom->offset / 2; i < len; i++)