staging: r8188eu: remove rtw_netif_start_queue wrapper
authorMartin Kaiser <martin@kaiser.cx>
Sat, 15 Jan 2022 16:55:34 +0000 (17:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Jan 2022 15:27:23 +0000 (16:27 +0100)
Remove the rtw_netif_start_queue wrapper function. Call
netif_tx_start_all_queues directly.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220115165536.231210-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/osdep_service.h
drivers/staging/r8188eu/os_dep/os_intfs.c

index b8f983a..51a22ff 100644 (file)
@@ -67,11 +67,6 @@ static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
                netif_tx_queue_stopped(netdev_get_tx_queue(pnetdev, 3));
 }
 
-static inline void rtw_netif_start_queue(struct net_device *pnetdev)
-{
-       netif_tx_start_all_queues(pnetdev);
-}
-
 static inline void rtw_netif_stop_queue(struct net_device *pnetdev)
 {
        netif_tx_stop_all_queues(pnetdev);
index 2e4ad09..96b49ce 100644 (file)
@@ -654,7 +654,7 @@ int _netdev_open(struct net_device *pnetdev)
        rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv);
 
        if (!rtw_netif_queue_stopped(pnetdev))
-               rtw_netif_start_queue(pnetdev);
+               netif_tx_start_all_queues(pnetdev);
        else
                netif_tx_wake_all_queues(pnetdev);