]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add hns3_state_init() to do state initialization
authorHuazhong Tan <tanhuazhong@huawei.com>
Fri, 27 Aug 2021 09:28:18 +0000 (17:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Aug 2021 10:20:21 +0000 (11:20 +0100)
commitc511dfff4b655685d7341962a76d9a340150e0ac
tree93b216e784d8e94d9fe27da6201f832d0d061bcc
parent4c116f85ecf8c147450602ed47ee25de60807f45
net: hns3: add hns3_state_init() to do state initialization

To improve the readability and maintainability, add hns3_state_init() to
initialize the state, and this new function will be used to add more state
initialization in the future.

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