net: hns: hnae: remove unnecessary __module_get() and module_put()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 28 Oct 2022 07:34:57 +0000 (15:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Oct 2022 09:18:14 +0000 (09:18 +0000)
commit47aeed9d2ccde99c990ba3163b8d8308ad00df1b
tree6f974602235d9cfa8f54fb7c76e055babc46724f
parent738136a0e3757a8534df3ad97d6ff6d7f429f6c1
net: hns: hnae: remove unnecessary __module_get() and module_put()

hnae_ae_register() is called from hns_dsaf_probe(), the refcount of
module hnae has already be got in resolve_symbol() while calling the
function, so the __module_get()/module_put() can be removed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hnae.c