staging: rtl8188eu:Remove inline function rtw_netif_stop_queue()
authornavin patidar <navin.patidar@gmail.com>
Tue, 27 May 2014 15:35:53 +0000 (21:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 19:03:42 +0000 (12:03 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/os_intfs.c
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index e82ba63e3a59fdea6e265830344c0ecd92310a7b..9d32bb2f8f2cf6b583a983238fc5e1c55254cf50 100644 (file)
@@ -119,11 +119,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_stop_queue(struct net_device *pnetdev)
-{
-       netif_tx_stop_all_queues(pnetdev);
-}
-
 #ifndef BIT
        #define BIT(x)  (1 << (x))
 #endif
index e6596d50622451c43116cfa814c76421d579eb3b..0e0c32d46431ab6498048ac1f61afd2be5e8592e 100644 (file)
@@ -1096,7 +1096,7 @@ netdev_open_normal_process:
 netdev_open_error:
        padapter->bup = false;
        netif_carrier_off(pnetdev);
-       rtw_netif_stop_queue(pnetdev);
+       netif_tx_stop_all_queues(pnetdev);
        RT_TRACE(_module_os_intfs_c_, _drv_err_, ("-88eu_drv - dev_open, fail!\n"));
        DBG_88E("-88eu_drv - drv_open fail, bup =%d\n", padapter->bup);
        return -1;
@@ -1219,7 +1219,7 @@ int netdev_close(struct net_device *pnetdev)
                /* s1. */
                if (pnetdev) {
                        if (!rtw_netif_queue_stopped(pnetdev))
-                               rtw_netif_stop_queue(pnetdev);
+                               netif_tx_stop_all_queues(pnetdev);
                }
 
                /* s2. */
index 7b1c774cfc9e0e383b238433ddb0c03479507c19..7526b989dcbf9f3e392e28d6887fd2ae214326f9 100644 (file)
@@ -307,7 +307,7 @@ int rtw_hw_suspend(struct adapter *padapter)
        /* s1. */
        if (pnetdev) {
                netif_carrier_off(pnetdev);
-               rtw_netif_stop_queue(pnetdev);
+               netif_tx_stop_all_queues(pnetdev);
        }
 
        /* s2. */
@@ -416,7 +416,7 @@ static int rtw_suspend(struct usb_interface *pusb_intf, pm_message_t message)
        /* s1. */
        if (pnetdev) {
                netif_carrier_off(pnetdev);
-               rtw_netif_stop_queue(pnetdev);
+               netif_tx_stop_all_queues(pnetdev);
        }
 
        /* s2. */