git: 04349d30946a - main - netlink: remove now-unused rtnl_iface_find_cloner_locked().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Apr 2023 15:04:36 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=04349d30946ad6665550106815430f0709a33447 commit 04349d30946ad6665550106815430f0709a33447 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-25 15:04:11 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-25 15:04:11 +0000 netlink: remove now-unused rtnl_iface_find_cloner_locked(). --- sys/netlink/route/iface.c | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c index d81dc1f0ecae..816d6ff8632e 100644 --- a/sys/netlink/route/iface.c +++ b/sys/netlink/route/iface.c @@ -79,8 +79,6 @@ static SLIST_HEAD(, nl_cloner) nl_cloners = SLIST_HEAD_INITIALIZER(nl_cloners); static struct sx rtnl_cloner_lock; SX_SYSINIT(rtnl_cloner_lock, &rtnl_cloner_lock, "rtnl cloner lock"); -static struct nl_cloner *rtnl_iface_find_cloner_locked(const char *name); - /* * RTM_GETLINK request * sendto(3, {{len=32, type=RTM_GETLINK, flags=NLM_F_REQUEST|NLM_F_DUMP, seq=1641940952, pid=0}, @@ -1016,19 +1014,6 @@ rtnl_iface_del_cloner(struct nl_cloner *cloner) sx_xunlock(&rtnl_cloner_lock); } -static struct nl_cloner * -rtnl_iface_find_cloner_locked(const char *name) -{ - struct nl_cloner *cloner; - - SLIST_FOREACH(cloner, &nl_cloners, next) { - if (!strcmp(name, cloner->name)) - return (cloner); - } - - return (NULL); -} - void rtnl_ifaces_init(void) {