aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_nic.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:09 -0400
committerRoland Dreier <rolandd@cisco.com>2008-04-17 00:01:09 -0400
commit9d84ab9c7e82e7b6b9f8c25794f64f65d021c8fd (patch)
tree464f2e5cbb7226e1258977c28aa59802d8a46cab /drivers/infiniband/hw/nes/nes_nic.c
parent5bd8341ce2bb5ef575b3501a8c13f22ae9f0b2ad (diff)
RDMA/nes: Remove unused nes_netdev_exit() function
nes_netdev_exit() has no callers, so delete it. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index eee77da6193..9bdfdcc92ff 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -947,28 +947,6 @@ static int nes_netdev_change_mtu(struct net_device *netdev, int new_mtu)
947 return ret; 947 return ret;
948} 948}
949 949
950
951/**
952 * nes_netdev_exit - destroy network device
953 */
954void nes_netdev_exit(struct nes_vnic *nesvnic)
955{
956 struct net_device *netdev = nesvnic->netdev;
957 struct nes_ib_device *nesibdev = nesvnic->nesibdev;
958
959 nes_debug(NES_DBG_SHUTDOWN, "\n");
960
961 // destroy the ibdevice if RDMA enabled
962 if ((nesvnic->rdma_enabled)&&(nesvnic->of_device_registered)) {
963 nes_destroy_ofa_device( nesibdev );
964 nesvnic->of_device_registered = 0;
965 nesvnic->nesibdev = NULL;
966 }
967 unregister_netdev(netdev);
968 nes_debug(NES_DBG_SHUTDOWN, "\n");
969}
970
971
972#define NES_ETHTOOL_STAT_COUNT 55 950#define NES_ETHTOOL_STAT_COUNT 55
973static const char nes_ethtool_stringset[NES_ETHTOOL_STAT_COUNT][ETH_GSTRING_LEN] = { 951static const char nes_ethtool_stringset[NES_ETHTOOL_STAT_COUNT][ETH_GSTRING_LEN] = {
974 "Link Change Interrupts", 952 "Link Change Interrupts",