Commit 11ef971f authored by Huazhong Tan's avatar Huazhong Tan Committed by David S. Miller

net: hns3: remove an unused parameter in hclge_vf_rate_param_check()

Parameter vf in hclge_vf_rate_param_check() is unused now,
so remove it.
Signed-off-by: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 64749c9c
...@@ -10831,7 +10831,7 @@ static void hclge_reset_vf_rate(struct hclge_dev *hdev) ...@@ -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) int min_tx_rate, int max_tx_rate)
{ {
if (min_tx_rate != 0 || if (min_tx_rate != 0 ||
...@@ -10852,7 +10852,7 @@ static int hclge_set_vf_rate(struct hnae3_handle *handle, int vf, ...@@ -10852,7 +10852,7 @@ static int hclge_set_vf_rate(struct hnae3_handle *handle, int vf,
struct hclge_dev *hdev = vport->back; struct hclge_dev *hdev = vport->back;
int ret; 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) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment