aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
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 /include/net
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 'include/net')
-rw-r--r--include/net/rtnetlink.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
index bb13a182fba6..8fb42070a2c1 100644
--- a/include/net/rtnetlink.h
+++ b/include/net/rtnetlink.h
@@ -115,10 +115,9 @@ struct rtnl_af_ops {
115 const struct nlattr *attr); 115 const struct nlattr *attr);
116}; 116};
117 117
118int __rtnl_af_register(struct rtnl_af_ops *ops);
119void __rtnl_af_unregister(struct rtnl_af_ops *ops); 118void __rtnl_af_unregister(struct rtnl_af_ops *ops);
120 119
121int rtnl_af_register(struct rtnl_af_ops *ops); 120void rtnl_af_register(struct rtnl_af_ops *ops);
122void rtnl_af_unregister(struct rtnl_af_ops *ops); 121void rtnl_af_unregister(struct rtnl_af_ops *ops);
123 122
124struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]); 123struct net *rtnl_link_get_net(struct net *src_net, struct nlattr *tb[]);