OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200ecef
)
enetc: fix return value for enetc_ioctl()
author
Michael Walle
<michael@walle.cc>
Thu, 7 Nov 2019 23:58:21 +0000
(
00:58
+0100)
committer
David S. Miller
<davem@davemloft.net>
Fri, 8 Nov 2019 03:41:17 +0000
(19:41 -0800)
Return -EOPNOTSUPP instead of -EINVAL if the requested ioctl is not
implemented.
Signed-off-by: Michael Walle <michael@walle.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/enetc/enetc.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/freescale/enetc/enetc.c
b/drivers/net/ethernet/freescale/enetc/enetc.c
index
25af207
..
3e8f981
100644
(file)
--- a/
drivers/net/ethernet/freescale/enetc/enetc.c
+++ b/
drivers/net/ethernet/freescale/enetc/enetc.c
@@
-1601,7
+1601,7
@@
int enetc_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
#endif
if (!ndev->phydev)
- return -E
INVAL
;
+ return -E
OPNOTSUPP
;
return phy_mii_ioctl(ndev->phydev, rq, cmd);
}