[PATCH net-next v5 6/6] net: usb: lan78xx: remove unused struct members

Oleksij Rempel
2025-03-19T08:50:01Z

Remove unused members from struct lan78xx_net, including:

driver_priv
suspend_count
link_on
mdix_ctrl
interface
fc_autoneg
fc_request_control

These fields are no longer used in the driver and can be safely removed
as part of a cleanup.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
drivers/net/usb/lan78xx.c | 9 ---------
1 file changed, 9 deletions(-)

diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index 074ac4d1cbcb..fc6517bb3671 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -414,7 +414,6 @@ struct lan78xx_net {
struct net_device *net;
struct usb_device *udev;
struct usb_interface *intf;
- void *driver_priv;

unsigned int tx_pend_data_len;
size_t n_tx_urbs;
@@ -449,23 +448,15 @@ struct lan78xx_net {
unsigned long flags;

wait_queue_head_t *wait;
- unsigned char suspend_count;

unsigned int maxpacket;
struct timer_list stat_monitor;

unsigned long data[5];

- int link_on;
- u8 mdix_ctrl;
-
u32 chipid;
u32 chiprev;
struct mii_bus *mdiobus;
- phy_interface_t interface;
-
- int fc_autoneg;
- u8 fc_request_control;

int delta;
struct statstage stats;
--
2.39.5