mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-19 15:36:51 +07:00
enetc: fix return value for enetc_ioctl()
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>
This commit is contained in:
parent
200ecef67b
commit
c55b810abb
@ -1601,7 +1601,7 @@ int enetc_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
|
||||
#endif
|
||||
|
||||
if (!ndev->phydev)
|
||||
return -EINVAL;
|
||||
return -EOPNOTSUPP;
|
||||
return phy_mii_ioctl(ndev->phydev, rq, cmd);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user