mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 02:30:53 +07:00
net: remove empty inet_exit_net
Pointer members of an object with static storage duration, if not explicitly initialized, will be initialized to a NULL pointer. The net namespace API checks if this pointer is not NULL before using it, it are safe to remove the function. Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
196640a646
commit
af809709e9
@ -1845,13 +1845,8 @@ static __net_init int inet_init_net(struct net *net)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __net_exit void inet_exit_net(struct net *net)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static __net_initdata struct pernet_operations af_inet_ops = {
|
static __net_initdata struct pernet_operations af_inet_ops = {
|
||||||
.init = inet_init_net,
|
.init = inet_init_net,
|
||||||
.exit = inet_exit_net,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init init_inet_pernet_ops(void)
|
static int __init init_inet_pernet_ops(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user