Commit f75e5944 authored by Zheng Yongjun's avatar Zheng Yongjun Committed by David S. Miller

net: hinic: simplify the return hinic_configure_max_qnum()

Simplify the return expression.
Signed-off-by: default avatarZheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment