Skip to content

Commit

Permalink
rtnetlink: remove rtnl_kill_links
Browse files Browse the repository at this point in the history
The function rtnl_kill_links is defined but never used.

Signed-off-by: Stephen Hemminger <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
stephen hemminger authored and davem330 committed Oct 21, 2010
1 parent 6f747ac commit 8d8a0b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion include/net/rtnetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ struct rtnl_link_ops {

extern int __rtnl_link_register(struct rtnl_link_ops *ops);
extern void __rtnl_link_unregister(struct rtnl_link_ops *ops);
extern void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops);

extern int rtnl_link_register(struct rtnl_link_ops *ops);
extern void rtnl_link_unregister(struct rtnl_link_ops *ops);
Expand Down
8 changes: 0 additions & 8 deletions net/core/rtnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,14 +299,6 @@ static void __rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops)
unregister_netdevice_many(&list_kill);
}

void rtnl_kill_links(struct net *net, struct rtnl_link_ops *ops)
{
rtnl_lock();
__rtnl_kill_links(net, ops);
rtnl_unlock();
}
EXPORT_SYMBOL_GPL(rtnl_kill_links);

/**
* __rtnl_link_unregister - Unregister rtnl_link_ops from rtnetlink.
* @ops: struct rtnl_link_ops * to unregister
Expand Down

0 comments on commit 8d8a0b1

Please sign in to comment.