summaryrefslogtreecommitdiff
path: root/pimd/pim6_mld.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-06-22 19:40:58 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-06-23 13:43:25 -0400
commitf4e8f5d496e54a55d0366b8fd7557f5bd65a0f2e (patch)
treec3837c7666d7f48a759d751431090db70e557d68 /pimd/pim6_mld.c
parent6f55b4ae2405e548f687526b013b5ddcc4f6ff89 (diff)
pimd: Checks imply that pim is not properly configured
The call to gm_update_ll checks for null pointers and implies to SA that things could not be configured correctly This is not true with the code flow. Remove the confusing code. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'pimd/pim6_mld.c')
-rw-r--r--pimd/pim6_mld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c
index a67d33ca97..255fd62ba7 100644
--- a/pimd/pim6_mld.c
+++ b/pimd/pim6_mld.c
@@ -2198,7 +2198,7 @@ void gm_ifp_teardown(struct interface *ifp)
static void gm_update_ll(struct interface *ifp)
{
struct pim_interface *pim_ifp = ifp->info;
- struct gm_if *gm_ifp = pim_ifp ? pim_ifp->mld : NULL;
+ struct gm_if *gm_ifp = pim_ifp->mld;
bool was_querier;
was_querier =