提交 2e15b680 编写于 作者: H Huazhong Tan 提交者: Zheng Zengkai

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

mainline inclusion
from mainline-v5.12-rc1-dontuse
commit 11ef971f
category: feature
bugzilla: 173966
CVE: NA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=11ef971f5a6a35cf3bb4d67f0e1e38e0b6eb4f47

----------------------------------------------------------------------

Parameter vf in hclge_vf_rate_param_check() is unused now,
so remove it.
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Reviewed-by: NYongxin Li <liyongxin1@huawei.com>
Signed-off-by: NJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 946508da
......@@ -10837,7 +10837,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 ||
......@@ -10858,7 +10858,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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册