aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/benet/be_main.c')
-rw-r--r--drivers/net/benet/be_main.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index fa10f13242c3..058d7f95f5ae 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -830,7 +830,6 @@ static void skb_fill_rx_data(struct be_adapter *adapter,
830 830
831done: 831done:
832 be_rx_stats_update(adapter, pktsize, num_rcvd); 832 be_rx_stats_update(adapter, pktsize, num_rcvd);
833 return;
834} 833}
835 834
836/* Process the RX completion indicated by rxcp when GRO is disabled */ 835/* Process the RX completion indicated by rxcp when GRO is disabled */
@@ -884,8 +883,6 @@ static void be_rx_compl_process(struct be_adapter *adapter,
884 } else { 883 } else {
885 netif_receive_skb(skb); 884 netif_receive_skb(skb);
886 } 885 }
887
888 return;
889} 886}
890 887
891/* Process the RX completion indicated by rxcp when GRO is enabled */ 888/* Process the RX completion indicated by rxcp when GRO is enabled */
@@ -965,7 +962,6 @@ static void be_rx_compl_process_gro(struct be_adapter *adapter,
965 } 962 }
966 963
967 be_rx_stats_update(adapter, pkt_size, num_rcvd); 964 be_rx_stats_update(adapter, pkt_size, num_rcvd);
968 return;
969} 965}
970 966
971static struct be_eth_rx_compl *be_rx_compl_get(struct be_adapter *adapter) 967static struct be_eth_rx_compl *be_rx_compl_get(struct be_adapter *adapter)
@@ -1059,8 +1055,6 @@ static void be_post_rx_frags(struct be_adapter *adapter)
1059 /* Let be_worker replenish when memory is available */ 1055 /* Let be_worker replenish when memory is available */
1060 adapter->rx_post_starved = true; 1056 adapter->rx_post_starved = true;
1061 } 1057 }
1062
1063 return;
1064} 1058}
1065 1059
1066static struct be_eth_tx_compl *be_tx_compl_get(struct be_queue_info *tx_cq) 1060static struct be_eth_tx_compl *be_tx_compl_get(struct be_queue_info *tx_cq)
@@ -1622,7 +1616,6 @@ static void be_msix_enable(struct be_adapter *adapter)
1622 BE_NUM_MSIX_VECTORS); 1616 BE_NUM_MSIX_VECTORS);
1623 if (status == 0) 1617 if (status == 0)
1624 adapter->msix_enabled = true; 1618 adapter->msix_enabled = true;
1625 return;
1626} 1619}
1627 1620
1628static void be_sriov_enable(struct be_adapter *adapter) 1621static void be_sriov_enable(struct be_adapter *adapter)
@@ -1634,7 +1627,6 @@ static void be_sriov_enable(struct be_adapter *adapter)
1634 adapter->sriov_enabled = status ? false : true; 1627 adapter->sriov_enabled = status ? false : true;
1635 } 1628 }
1636#endif 1629#endif
1637 return;
1638} 1630}
1639 1631
1640static void be_sriov_disable(struct be_adapter *adapter) 1632static void be_sriov_disable(struct be_adapter *adapter)
@@ -1741,7 +1733,6 @@ static void be_irq_unregister(struct be_adapter *adapter)
1741 be_free_irq(adapter, &adapter->rx_eq); 1733 be_free_irq(adapter, &adapter->rx_eq);
1742done: 1734done:
1743 adapter->isr_registered = false; 1735 adapter->isr_registered = false;
1744 return;
1745} 1736}
1746 1737
1747static int be_open(struct net_device *netdev) 1738static int be_open(struct net_device *netdev)
@@ -2620,8 +2611,6 @@ static void be_shutdown(struct pci_dev *pdev)
2620 be_setup_wol(adapter, true); 2611 be_setup_wol(adapter, true);
2621 2612
2622 pci_disable_device(pdev); 2613 pci_disable_device(pdev);
2623
2624 return;
2625} 2614}
2626 2615
2627static pci_ers_result_t be_eeh_err_detected(struct pci_dev *pdev, 2616static pci_ers_result_t be_eeh_err_detected(struct pci_dev *pdev,
@@ -2703,7 +2692,6 @@ static void be_eeh_resume(struct pci_dev *pdev)
2703 return; 2692 return;
2704err: 2693err:
2705 dev_err(&adapter->pdev->dev, "EEH resume failed\n"); 2694 dev_err(&adapter->pdev->dev, "EEH resume failed\n");
2706 return;
2707} 2695}
2708 2696
2709static struct pci_error_handlers be_eeh_handlers = { 2697static struct pci_error_handlers be_eeh_handlers = {