]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: usb: replace unnecessary get_link functions with usbnet_get_link
authorEthan Nelson-Moore <enelsonmoore@gmail.com>
Sat, 24 Jan 2026 08:22:06 +0000 (00:22 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 27 Jan 2026 03:28:01 +0000 (19:28 -0800)
commitbd323fab96fba4a134d3c69bd12892f8ae3940bc
treebd7c064daddb6895e420a19b694e1149a1467d89
parent2dd698f68e3c9bfcb2b33d3a0579b32f5824d91b
net: usb: replace unnecessary get_link functions with usbnet_get_link

usbnet_get_link calls mii_link_ok if the device has a MII defined in
its usbnet struct and no check_connect function defined there. This is
true of these drivers, so their custom get_link functions which call
mii_link_ok are useless. Remove them in favor of usbnet_get_link.

Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Peter Korsgaard <peter@korsgaard.com>
Link: https://patch.msgid.link/20260124082217.82351-1-enelsonmoore@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/asix_devices.c
drivers/net/usb/dm9601.c
drivers/net/usb/sr9800.c