staging: rtl8192e: Remove unused/constant parameter mesh_flag and shutdown
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Mon, 2 Oct 2023 17:53:45 +0000 (19:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 07:59:05 +0000 (09:59 +0200)
Remove parameters mesh_flag and shutdown of function
rtllib_softmac_stop_protocol(). mesh_flag is unused. shutdown is always
true.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/5a8f87165b10fd93e3e2fad83ff3380c9f4f22b2.1696266965.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/rtllib.h
drivers/staging/rtl8192e/rtllib_softmac.c

index 1f3a2bee247f284adf0a52fcac42bae7fe41f2d0..4e9a0138ce551804bd458435f9b9504921081a85 100644 (file)
@@ -655,7 +655,7 @@ static int _rtl92e_sta_down(struct net_device *dev, bool shutdownrf)
        _rtl92e_cancel_deferred_work(priv);
        cancel_delayed_work(&priv->rtllib->hw_wakeup_wq);
 
-       rtllib_softmac_stop_protocol(priv->rtllib, 0, true);
+       rtllib_softmac_stop_protocol(priv->rtllib);
        spin_lock_irqsave(&priv->rf_ps_lock, flags);
        while (priv->rf_change_in_progress) {
                spin_unlock_irqrestore(&priv->rf_ps_lock, flags);
@@ -1763,7 +1763,7 @@ void rtl92e_commit(struct net_device *dev)
 
        if (priv->up == 0)
                return;
-       rtllib_softmac_stop_protocol(priv->rtllib, 0, true);
+       rtllib_softmac_stop_protocol(priv->rtllib);
        rtl92e_irq_disable(dev);
        rtl92e_stop_adapter(dev, true);
        _rtl92e_up(dev);
index bf4ec38efa35d9f241621cd04d2c69a023c4de82..65f29afa81be2fe0c07ab92859b6a6bc575e5e02 100644 (file)
@@ -1705,8 +1705,7 @@ void rtllib_DisableNetMonitorMode(struct net_device *dev, bool bInitState);
 void rtllib_EnableIntelPromiscuousMode(struct net_device *dev, bool bInitState);
 void rtllib_DisableIntelPromiscuousMode(struct net_device *dev,
                                        bool bInitState);
-void rtllib_softmac_stop_protocol(struct rtllib_device *ieee,
-                                 u8 mesh_flag, u8 shutdown);
+void rtllib_softmac_stop_protocol(struct rtllib_device *ieee);
 void rtllib_softmac_start_protocol(struct rtllib_device *ieee, u8 mesh_flag);
 
 void rtllib_reset_queue(struct rtllib_device *ieee);
index 777338fd266421b5d4001a21bb61bd07860fac59..1a086f0ff10d9ad03ab2da620d779b7e2a48910c 100644 (file)
@@ -2279,12 +2279,11 @@ struct sk_buff *rtllib_get_beacon(struct rtllib_device *ieee)
 }
 EXPORT_SYMBOL(rtllib_get_beacon);
 
-void rtllib_softmac_stop_protocol(struct rtllib_device *ieee, u8 mesh_flag,
-                                 u8 shutdown)
+void rtllib_softmac_stop_protocol(struct rtllib_device *ieee)
 {
        rtllib_stop_scan_syncro(ieee);
        mutex_lock(&ieee->wx_mutex);
-       rtllib_stop_protocol(ieee, shutdown);
+       rtllib_stop_protocol(ieee, true);
        mutex_unlock(&ieee->wx_mutex);
 }
 EXPORT_SYMBOL(rtllib_softmac_stop_protocol);