net: hns3: remove a duplicate pf reset counting
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 17 Apr 2021 07:09:22 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Apr 2021 22:38:05 +0000 (15:38 -0700)
commit1c5a2ba67989c01b8aeda81969b7a4a3702c51b5
treec35e744aa2a600eaed59b68dfb01b57467e9141e
parent46fd4471615c1bff9d87c411140807762c25667a
net: hns3: remove a duplicate pf reset counting

When enter suspend mode the counter of pf reset will be increased
twice, since both hclge_prepare_general() and hclge_prepare_wait()
increase this counter. So remove the duplicate counting in
hclge_prepare_general().

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c