Skip to content
Commit 47aeed9d authored by Yang Yingliang's avatar Yang Yingliang Committed by David S. Miller
Browse files

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: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 738136a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment