mirror of https://gitee.com/openkylin/linux.git
net: hns3: remove a duplicated printing in hclge_configure()
Since hclge_get_cfg() already has error print, so hclge_configure() should not print error when calling hclge_get_cfg() fail. Reported-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
96b8e87838
commit
727f514bd6
|
@ -1363,10 +1363,8 @@ static int hclge_configure(struct hclge_dev *hdev)
|
|||
int ret;
|
||||
|
||||
ret = hclge_get_cfg(hdev, &cfg);
|
||||
if (ret) {
|
||||
dev_err(&hdev->pdev->dev, "get mac mode error %d.\n", ret);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
hdev->num_vmdq_vport = cfg.vmdq_vport_num;
|
||||
hdev->base_tqp_pid = 0;
|
||||
|
|
Loading…
Reference in New Issue