net: hns3: Remove some redundant assignments
authorJian Shen <shenjian15@huawei.com>
Thu, 19 Jul 2018 14:46:58 +0000 (15:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 15:44:23 +0000 (08:44 -0700)
Remove some redundant assignments, because they have
been set to zero when allocate hdev.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index 266c68607e5370e10386c84b531c01357512fd50..b271880c068f3496a8ef368e380960bc38ab4ce4 100644 (file)
@@ -5595,8 +5595,6 @@ static int hclge_init_ae_dev(struct hnae3_ae_dev *ae_dev)
        hdev->pdev = pdev;
        hdev->ae_dev = ae_dev;
        hdev->reset_type = HNAE3_NONE_RESET;
-       hdev->reset_request = 0;
-       hdev->reset_pending = 0;
        ae_dev->priv = hdev;
 
        ret = hclge_pci_init(hdev);