Commit c55b810a authored by Michael Walle's avatar Michael Walle Committed by David S. Miller
Browse files

enetc: fix return value for enetc_ioctl()



Return -EOPNOTSUPP instead of -EINVAL if the requested ioctl is not
implemented.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 200ecef6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1601,7 +1601,7 @@ int enetc_ioctl(struct net_device *ndev, struct ifreq *rq, int cmd)
#endif
#endif


	if (!ndev->phydev)
	if (!ndev->phydev)
		return -EINVAL;
		return -EOPNOTSUPP;
	return phy_mii_ioctl(ndev->phydev, rq, cmd);
	return phy_mii_ioctl(ndev->phydev, rq, cmd);
}
}