mirror_ubuntu-kernels/drivers/net/ethernet/hisilicon
Leon Romanovsky a1fcb106ae net: hns3: remove always exist devlink pointer check
The devlink pointer always exists after hclge_devlink_init() succeed.
Remove that check together with NULL setting after release and ensure
that devlink_register is last command prior to call to devlink_reload_enable().

Fixes: b741269b27 ("net: hns3: add support for registering devlink for PF")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-08-14 13:59:10 +01:00
..
hns dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
hns3 net: hns3: remove always exist devlink pointer check 2021-08-14 13:59:10 +01:00
hip04_eth.c net: hisilicon: rename CACHE_LINE_MASK to avoid redefinition 2021-07-19 10:02:12 -07:00
hisi_femac.c dev_ioctl: split out ndo_eth_ioctl 2021-07-27 20:11:45 +01:00
hix5hd2_gmac.c of: net: pass the dst buffer to of_get_mac_address() 2021-04-13 14:35:02 -07:00
hns_mdio.c net: hns: remove redundant variable initialization 2021-03-24 12:07:21 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00