Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: usb: smsc95xx: use phy_do_ioctl_running function

The smsc95xx_ioctl function behaves identically to the
phy_do_ioctl_running function. Remove it and use the
phy_do_ioctl_running function directly instead.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20260124080751.78488-1-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Ethan Nelson-Moore and committed by
Jakub Kicinski
2dd698f6 76961e5b

+1 -9
+1 -9
drivers/net/usb/smsc95xx.c
··· 854 854 .set_pauseparam = smsc95xx_set_pauseparam, 855 855 }; 856 856 857 - static int smsc95xx_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd) 858 - { 859 - if (!netif_running(netdev)) 860 - return -EINVAL; 861 - 862 - return phy_mii_ioctl(netdev->phydev, rq, cmd); 863 - } 864 - 865 857 static void smsc95xx_init_mac_address(struct usbnet *dev) 866 858 { 867 859 u8 addr[ETH_ALEN]; ··· 1131 1139 .ndo_get_stats64 = dev_get_tstats64, 1132 1140 .ndo_set_mac_address = eth_mac_addr, 1133 1141 .ndo_validate_addr = eth_validate_addr, 1134 - .ndo_eth_ioctl = smsc95xx_ioctl, 1142 + .ndo_eth_ioctl = phy_do_ioctl_running, 1135 1143 .ndo_set_rx_mode = smsc95xx_set_multicast, 1136 1144 .ndo_set_features = smsc95xx_set_features, 1137 1145 };