Skip to content

Commit af80970

Browse files
lrq-maxdavem330
authored andcommitted
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>
1 parent 196640a commit af80970

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

net/ipv4/af_inet.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1845,13 +1845,8 @@ static __net_init int inet_init_net(struct net *net)
18451845
return 0;
18461846
}
18471847

1848-
static __net_exit void inet_exit_net(struct net *net)
1849-
{
1850-
}
1851-
18521848
static __net_initdata struct pernet_operations af_inet_ops = {
18531849
.init = inet_init_net,
1854-
.exit = inet_exit_net,
18551850
};
18561851

18571852
static int __init init_inet_pernet_ops(void)

0 commit comments

Comments
 (0)