aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2013-12-30 13:41:32 -0500
committerDavid S. Miller <davem@davemloft.net>2014-01-01 23:42:19 -0500
commit3678a9d86324e457d0ff9d898747ee7e787f4bb8 (patch)
treea32a9a46e4e5f891b10a82fb53c03586fa2f164b /net/ipv6/addrconf.c
parent47d1f71f56bd397bfa09c6b2a595991d1dd9c489 (diff)
netlink: cleanup rntl_af_register
The function __rtnl_af_register is never called outside this code, and the return value is always 0. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 9418ca375132..6c1634507ec2 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -5207,9 +5207,7 @@ int __init addrconf_init(void)
5207 5207
5208 addrconf_verify(0); 5208 addrconf_verify(0);
5209 5209
5210 err = rtnl_af_register(&inet6_ops); 5210 rtnl_af_register(&inet6_ops);
5211 if (err < 0)
5212 goto errout_af;
5213 5211
5214 err = __rtnl_register(PF_INET6, RTM_GETLINK, NULL, inet6_dump_ifinfo, 5212 err = __rtnl_register(PF_INET6, RTM_GETLINK, NULL, inet6_dump_ifinfo,
5215 NULL); 5213 NULL);
@@ -5233,7 +5231,6 @@ int __init addrconf_init(void)
5233 return 0; 5231 return 0;
5234errout: 5232errout:
5235 rtnl_af_unregister(&inet6_ops); 5233 rtnl_af_unregister(&inet6_ops);
5236errout_af:
5237 unregister_netdevice_notifier(&ipv6_dev_notf); 5234 unregister_netdevice_notifier(&ipv6_dev_notf);
5238errlo: 5235errlo:
5239 unregister_pernet_subsys(&addrconf_ops); 5236 unregister_pernet_subsys(&addrconf_ops);