diff options
| author | anlan_cs <vic.lan@pica8.com> | 2022-02-13 14:45:02 +0800 | 
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2022-02-15 22:49:37 +0800 | 
| commit | c0d217c4e832926be955067b52ab31804e9c09f0 (patch) | |
| tree | 6ed5fe8df4d99c78591ebf574259d544aa453da0 /pimd/pim_iface.c | |
| parent | 1e5c949d3625d3a50ed1291ed855fc193913fb91 (diff) | |
pimd: remove redundant code
`ifchannel_rb` is already cleaned by `pim_ifchannel_delete_all`, so
it should be removed.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'pimd/pim_iface.c')
| -rw-r--r-- | pimd/pim_iface.c | 8 | 
1 files changed, 0 insertions, 8 deletions
diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 3f138e22e5..6e5eba90e5 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -193,7 +193,6 @@ struct pim_interface *pim_if_new(struct interface *ifp, bool igmp, bool pim,  void pim_if_delete(struct interface *ifp)  {  	struct pim_interface *pim_ifp; -	struct pim_ifchannel *ch;  	assert(ifp);  	pim_ifp = ifp->info; @@ -218,13 +217,6 @@ void pim_if_delete(struct interface *ifp)  	list_delete(&pim_ifp->sec_addr_list);  	XFREE(MTYPE_PIM_INTERFACE, pim_ifp->boundary_oil_plist); - -	while (!RB_EMPTY(pim_ifchannel_rb, &pim_ifp->ifchannel_rb)) { -		ch = RB_ROOT(pim_ifchannel_rb, &pim_ifp->ifchannel_rb); - -		pim_ifchannel_delete(ch); -	} -  	XFREE(MTYPE_PIM_INTERFACE, pim_ifp);  	ifp->info = NULL;  | 
