diff options
author | Donald Sharp <donaldsharp72@gmail.com> | 2022-02-17 14:06:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 14:06:14 +0100 |
commit | b5bf67e90572121ae5769c6996b95f81f0dc2f04 (patch) | |
tree | 64b013e9a2c01b163c30ea68aafb2db1b285bacc /pimd | |
parent | Merge pull request #8968 from donaldsharp/route_map_test (diff) | |
parent | pimd: remove redundant code (diff) | |
download | frr-b5bf67e90572121ae5769c6996b95f81f0dc2f04.tar.xz frr-b5bf67e90572121ae5769c6996b95f81f0dc2f04.zip |
Merge pull request #10582 from anlancs/pimd-remove-redundant
pimd: remove redundant code
Diffstat (limited to 'pimd')
-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 1cdc46df6..57fe97816 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; |