summaryrefslogtreecommitdiffstats
path: root/pimd/pim_ifchannel.c
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-07-02 18:50:20 +0200
committerF. Aragon <paco@voltanet.io>2018-07-06 01:10:15 +0200
commit2e1cc436791c3d2e39af9ffbd8194e9e4abc7795 (patch)
treeff80fa30b11c02764a44f6f20781c5cdb6f07c90 /pimd/pim_ifchannel.c
parentMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3... (diff)
downloadfrr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.tar.xz
frr-2e1cc436791c3d2e39af9ffbd8194e9e4abc7795.zip
eigrpd lib pimd zebra: dead code (PVS-Studio)
Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'pimd/pim_ifchannel.c')
-rw-r--r--pimd/pim_ifchannel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c
index 5e6b0f10c..6c347a430 100644
--- a/pimd/pim_ifchannel.c
+++ b/pimd/pim_ifchannel.c
@@ -136,9 +136,8 @@ void pim_ifchannel_delete(struct pim_ifchannel *ch)
mask = PIM_OIF_FLAG_PROTO_IGMP;
/* SGRpt entry could have empty oil */
- if (ch->upstream->channel_oil)
- pim_channel_del_oif(ch->upstream->channel_oil,
- ch->interface, mask);
+ pim_channel_del_oif(ch->upstream->channel_oil, ch->interface,
+ mask);
/*
* Do we have any S,G's that are inheriting?
* Nuke from on high too.