pimd: Remove unnecessary NULL check

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
Donald Sharp 2017-05-10 20:06:17 -04:00
parent 61e99c94ae
commit a88e628d29

View File

@ -296,9 +296,8 @@ void pim_ifchannel_ifjoin_switch(const char *caller, struct pim_ifchannel *ch,
* if channel. So remove it.
* I think this is dead code now. is it?
*/
if (!ch
&& c_oil->oil.mfcc_ttls
[pim_ifp->mroute_vif_index])
if (c_oil->oil.mfcc_ttls
[pim_ifp->mroute_vif_index])
pim_channel_del_oif(
c_oil, ch->interface,
PIM_OIF_FLAG_PROTO_STAR);