staging: rtl8192e: Remove dead code from struct rtl819x_ops
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Tue, 21 Feb 2023 20:53:24 +0000 (21:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Mar 2023 16:04:59 +0000 (17:04 +0100)
Remove entry .rx_command_packet_handler, .irq_clear and
.init_before_adapter_start as it is dead code.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/93427f1b2ad5841451d7e8cc8a621d7eff8cd916.1677010997.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c
drivers/staging/rtl8192e/rtl8192e/rtl_core.h

index 15eab61..0c1eb75 100644 (file)
@@ -28,8 +28,6 @@ static char *ifname = "wlan%d";
 static const struct rtl819x_ops rtl819xp_ops = {
        .nic_type                       = NIC_8192E,
        .link_change                    = rtl92e_link_change,
-       .rx_command_packet_handler = NULL,
-       .irq_clear                      = rtl92e_clear_irq,
 };
 
 static struct pci_device_id rtl8192_pci_id_tbl[] = {
index 43e1c65..e572915 100644 (file)
@@ -205,12 +205,7 @@ struct rtl8192_tx_ring {
 
 struct rtl819x_ops {
        enum nic_t nic_type;
-       void (*init_before_adapter_start)(struct net_device *dev);
        void (*link_change)(struct net_device *dev);
-       bool (*rx_command_packet_handler)(struct net_device *dev,
-                                         struct sk_buff *skb,
-                                         struct rx_desc *pdesc);
-       void (*irq_clear)(struct net_device *dev);
 };
 
 struct r8192_priv {