diff options
author | Li RongQing | 2019-08-19 20:05:15 +0800 |
---|---|---|
committer | David S. Miller | 2019-08-19 18:22:54 -0700 |
commit | af809709e9df2a44137429ba3694c339a11b710d (patch) | |
tree | 38872e93661c6957a4027a3fd7f463dce923d91b /net/ipv4 | |
parent | 196640a6468f50e8ee3c0ba24db7145c7c1cf690 (diff) |
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>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/af_inet.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index ed2301ef872e..70f92aaca411 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1845,13 +1845,8 @@ static __net_init int inet_init_net(struct net *net) return 0; } -static __net_exit void inet_exit_net(struct net *net) -{ -} - static __net_initdata struct pernet_operations af_inet_ops = { .init = inet_init_net, - .exit = inet_exit_net, }; static int __init init_inet_pernet_ops(void) |