]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove empty inet_exit_net
authorLi RongQing <lirongqing@baidu.com>
Mon, 19 Aug 2019 12:05:15 +0000 (20:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 01:22:54 +0000 (18:22 -0700)
commitbb7768b47d0a50346334972106832f607eb921ff
tree38872e93661c6957a4027a3fd7f463dce923d91b
parent04f27b0b0908fb5ab13345c8c84afcb65b7212b9
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>
net/ipv4/af_inet.c