From a88e628d296ef94ed98b096c3078557d9c20f470 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 10 May 2017 20:06:17 -0400 Subject: [PATCH] pimd: Remove unnecessary NULL check Signed-off-by: Donald Sharp --- pimd/pim_ifchannel.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pimd/pim_ifchannel.c b/pimd/pim_ifchannel.c index 40f7e47665..058f99ca4d 100644 --- a/pimd/pim_ifchannel.c +++ b/pimd/pim_ifchannel.c @@ -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); -- 2.39.5