mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
team: add __exit modifier to team_nl_fini()
team_nl_fini is only called when the module exits, so add the __exit modifier to it. Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Reviewed-by: Simon Horman <horms@kernel.org> Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230807012556.3146071-2-shaozhengchao@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
6f9728dd44
commit
8958ef511a
@@ -2892,7 +2892,7 @@ static int __init team_nl_init(void)
|
||||
return genl_register_family(&team_nl_family);
|
||||
}
|
||||
|
||||
static void team_nl_fini(void)
|
||||
static void __exit team_nl_fini(void)
|
||||
{
|
||||
genl_unregister_family(&team_nl_family);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user