提交 f75e5944 编写于 作者: Z Zheng Yongjun 提交者: David S. Miller

net: hinic: simplify the return hinic_configure_max_qnum()

Simplify the return expression.
Signed-off-by: NZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 264386fc
......@@ -313,13 +313,7 @@ static void free_rxqs(struct hinic_dev *nic_dev)
static int hinic_configure_max_qnum(struct hinic_dev *nic_dev)
{
int err;
err = hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps);
if (err)
return err;
return 0;
return hinic_set_max_qnum(nic_dev, nic_dev->hwdev->nic_cap.max_qps);
}
static int hinic_rss_init(struct hinic_dev *nic_dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册