提交 bbb6bd79 编写于 作者: Y Yufeng Mo 提交者: Xie XiuQi

net: hns3: some cleanup for coding style

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch modifies some coding style problems, including
the coding style of the bool type, and the judgment of 0.

Feature or Bugfix:Bugfix
Signed-off-by: NYufeng Mo <moyufeng@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 433c08ac
...@@ -2885,7 +2885,7 @@ static int hclge_get_status(struct hnae3_handle *handle) ...@@ -2885,7 +2885,7 @@ static int hclge_get_status(struct hnae3_handle *handle)
static struct hclge_vport *hclge_get_vf_vport(struct hclge_dev *hdev, int vf) static struct hclge_vport *hclge_get_vf_vport(struct hclge_dev *hdev, int vf)
{ {
if (pci_num_vf(hdev->pdev) == 0) { if (!pci_num_vf(hdev->pdev)) {
dev_err(&hdev->pdev->dev, dev_err(&hdev->pdev->dev,
"SRIOV is disabled, can not get vport(%d) info.\n", vf); "SRIOV is disabled, can not get vport(%d) info.\n", vf);
return NULL; return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册