summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2019-06-13 21:29:09 -0400
committerDavid S. Miller <davem@davemloft.net>2019-06-14 22:50:33 -0400
commit3e18943333404b03d17fc4a008da7c3676523f05 (patch)
treeed0cd38bd836367480ecf5936f329f989cb76051
parentc4aaa5ddffe78f4fba86e94eed0980dd287bc2b4 (diff)
net: remove empty netlink_tap_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>
-rw-r--r--net/netlink/af_netlink.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 7bc579f27332..90b2ab9dd449 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -241,13 +241,8 @@ static __net_init int netlink_tap_init_net(struct net *net)
241 return 0; 241 return 0;
242} 242}
243 243
244static void __net_exit netlink_tap_exit_net(struct net *net)
245{
246}
247
248static struct pernet_operations netlink_tap_net_ops = { 244static struct pernet_operations netlink_tap_net_ops = {
249 .init = netlink_tap_init_net, 245 .init = netlink_tap_init_net,
250 .exit = netlink_tap_exit_net,
251 .id = &netlink_tap_net_id, 246 .id = &netlink_tap_net_id,
252 .size = sizeof(struct netlink_tap_net), 247 .size = sizeof(struct netlink_tap_net),
253}; 248};