]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
UBUNTU: SAUCE: {topost} net: hns3: fix unused function warning in VF driver
authorXi Wang <wangxi11@huawei.com>
Wed, 18 Apr 2018 04:18:18 +0000 (12:18 +0800)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 18:41:54 +0000 (14:41 -0400)
BugLink: https://bugs.launchpad.net/bugs/1768670
This patch fixes the following warning from compile:

drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c:731:12:
warning: 'hclgevf_cfg_func_mta_filter' defined but not used
[-Wunused-function]

hclgevf_cfg_func_mta_filter is no longer used, so delete it.

Signed-off-by: Xi Wang <wangxi11@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index 2cdacfe1c91aaaaff8a08df9b06791275442882b..8df154e2c84a49e9b10d937c42d72bcbd3fd6f29 100644 (file)
@@ -738,17 +738,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;