OSDN Git Service

liquidio: Removed one line function stop_txq
authorIntiyaz Basha <intiyaz.basha@cavium.com>
Sat, 24 Mar 2018 00:37:20 +0000 (17:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Mar 2018 20:18:52 +0000 (16:18 -0400)
Removing one line function stop_txq

Signed-off-by: Intiyaz Basha <intiyaz.basha@cavium.com>
Acked-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c

index f9e2a06..c0df7be 100644 (file)
@@ -514,15 +514,6 @@ static void liquidio_deinit_pci(void)
 }
 
 /**
- * \brief Stop Tx queue
- * @param netdev network device
- */
-static void stop_txq(struct net_device *netdev)
-{
-       txqs_stop(netdev);
-}
-
-/**
  * \brief Start Tx queue
  * @param netdev network device
  */
@@ -844,7 +835,7 @@ static inline void update_link_status(struct net_device *netdev,
                } else {
                        dev_dbg(&oct->pci_dev->dev, "%s: link_off", __func__);
                        netif_carrier_off(netdev);
-                       stop_txq(netdev);
+                       txqs_stop(netdev);
                }
                if (lio->linfo.link.s.mtu != current_max_mtu) {
                        netif_info(lio, probe, lio->netdev, "Max MTU changed from %d to %d\n",