]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Checks imply that pim is not properly configured
authorDonald Sharp <sharpd@nvidia.com>
Wed, 22 Jun 2022 23:40:58 +0000 (19:40 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 23 Jun 2022 17:43:25 +0000 (13:43 -0400)
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>
pimd/pim6_mld.c

index a67d33ca971da443aae5108b1009d3f7e1e36588..255fd62ba7b17c923bc12a2334af7d43e70f44f3 100644 (file)
@@ -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 =