diff options
author | Dr. David Alan Gilbert <linux@treblig.org> | 2024-05-26 23:59:22 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-05-28 16:24:34 +0300 |
commit | c30ff5f3aec3f77e13cfd7373390639bfdcffba7 (patch) | |
tree | 49b74e978b175f1dfcf63fe151c75c3eb439c3fa | |
parent | 18ae4c093cd23b741607fd35ba449f80fbd9f322 (diff) | |
download | linux-c30ff5f3aec3f77e13cfd7373390639bfdcffba7.tar.xz |
net: usb: remove unused structs 'usb_context'
Both lan78xx and smsc75xx have a 'usb_context'
struct which is unused, since their original commits.
Remove them.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20240526205922.176578-1-linux@treblig.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
-rw-r--r-- | drivers/net/usb/lan78xx.c | 5 | ||||
-rw-r--r-- | drivers/net/usb/smsc75xx.c | 5 |
2 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index 5a2c38b63012..7a5cc49ebec6 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -380,11 +380,6 @@ struct skb_data { /* skb->cb is one of these */ int num_of_packet; }; -struct usb_context { - struct usb_ctrlrequest req; - struct lan78xx_net *dev; -}; - #define EVENT_TX_HALT 0 #define EVENT_RX_HALT 1 #define EVENT_RX_MEMORY 2 diff --git a/drivers/net/usb/smsc75xx.c b/drivers/net/usb/smsc75xx.c index 0726e18bee6f..78c821349f48 100644 --- a/drivers/net/usb/smsc75xx.c +++ b/drivers/net/usb/smsc75xx.c @@ -61,11 +61,6 @@ struct smsc75xx_priv { u8 suspend_flags; }; -struct usb_context { - struct usb_ctrlrequest req; - struct usbnet *dev; -}; - static bool turbo_mode = true; module_param(turbo_mode, bool, 0644); MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); |