Commit c1a4fd42 authored by Huazhong Tan's avatar Huazhong Tan Committed by Yang Yingliang
Browse files

net: hns3: remove a duplicate pf reset counting



mainline inclusion
from mainline-v5.13-rc1
commit 1c5a2ba6
category: cleanup
bugzilla: NA
CVE: NA

----------------------------

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: default avatarHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarJunxin Chen <chenjunxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent e21f4714
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment