]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: remove an unused parameter in hclge_vf_rate_param_check()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 9 Feb 2021 02:41:59 +0000 (10:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2021 23:34:07 +0000 (15:34 -0800)
Parameter vf in hclge_vf_rate_param_check() is unused now,
so remove it.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 5f3e8449164dda10725a4fa6195f0d469c5819c0..64a80a5933cb37873d3bd8d281543f8be1db413c 100644 (file)
@@ -10831,7 +10831,7 @@ static void hclge_reset_vf_rate(struct hclge_dev *hdev)
        }
 }
 
-static int hclge_vf_rate_param_check(struct hclge_dev *hdev, int vf,
+static int hclge_vf_rate_param_check(struct hclge_dev *hdev,
                                     int min_tx_rate, int max_tx_rate)
 {
        if (min_tx_rate != 0 ||
@@ -10852,7 +10852,7 @@ static int hclge_set_vf_rate(struct hnae3_handle *handle, int vf,
        struct hclge_dev *hdev = vport->back;
        int ret;
 
-       ret = hclge_vf_rate_param_check(hdev, vf, min_tx_rate, max_tx_rate);
+       ret = hclge_vf_rate_param_check(hdev, min_tx_rate, max_tx_rate);
        if (ret)
                return ret;