Skip to content

Commit

Permalink
net: hns3: remove unused hclgevf_cfg_func_mta_filter
Browse files Browse the repository at this point in the history
The last patch apparently added a complete replacement for this
function, but left the old one in place, which now causes a
harmless warning:

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:731:12: 'hclgevf_cfg_func_mta_filter' defined but not used

I assume it can be removed.

Fixes: 3a678b5 ("net: hns3: Optimize the VF's process of updating multicast MAC")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
arndb authored and davem330 committed Jun 5, 2018
1 parent 6e86000 commit 4f416db
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,17 +728,6 @@ static void hclgevf_reset_tqp_stats(struct hnae3_handle *handle)
}
}

static int hclgevf_cfg_func_mta_filter(struct hnae3_handle *handle, bool en)
{
struct hclgevf_dev *hdev = hclgevf_ae_get_hdev(handle);
u8 msg[2] = {0};

msg[0] = en;
return hclgevf_send_mbx_msg(hdev, HCLGE_MBX_SET_MULTICAST,
HCLGE_MBX_MAC_VLAN_MC_FUNC_MTA_ENABLE,
msg, 1, false, NULL, 0);
}

static int hclgevf_cfg_func_mta_type(struct hclgevf_dev *hdev)
{
u8 resp_msg = HCLGEVF_MTA_TYPE_SEL_MAX;
Expand Down

0 comments on commit 4f416db

Please sign in to comment.