Skip to content

Commit

Permalink
net: hinic: simplify the return hinic_configure_max_qnum()
Browse files Browse the repository at this point in the history
Simplify the return expression.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zheng Yongjun authored and David S. Miller committed Dec 10, 2020
1 parent 264386f commit f75e594
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/net/ethernet/huawei/hinic/hinic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f75e594

Please sign in to comment.