提交 1d0dd370 编写于 作者: H Huazhong Tan 提交者: Xie XiuQi

net: hns3: remove duplicated assignment in hclge_reset

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

This patch removes a duplicated assignment in hclge_reset().

Fixes: e05b4bb02d47 ("net: hns3: add reset_done interface")

Feature or Bugfix:Bugfix
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 3a3258ec
...@@ -3399,7 +3399,7 @@ static int hclge_reset_stack(struct hclge_dev *hdev) ...@@ -3399,7 +3399,7 @@ static int hclge_reset_stack(struct hclge_dev *hdev)
static void hclge_reset(struct hclge_dev *hdev) static void hclge_reset(struct hclge_dev *hdev)
{ {
struct hnae3_handle *handle = handle = &hdev->vport[0].nic; struct hnae3_handle *handle = &hdev->vport[0].nic;
struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev); struct hnae3_ae_dev *ae_dev = pci_get_drvdata(hdev->pdev);
bool is_timeout = false; bool is_timeout = false;
int ret; int ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册