]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Trust the compiler
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 11 Feb 2017 11:54:56 +0000 (06:54 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 24 Feb 2017 15:03:41 +0000 (10:03 -0500)
When we set a variable to NULL, there is no
need to assert on it the following line.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_pim.c

index e852a88fee147949d1abf8db9a37da3db87bee31..471d8aa39e232fda505f993dbaf098448b8a40fe 100644 (file)
@@ -385,7 +385,6 @@ static void pim_sock_read_on(struct interface *ifp)
               pim_ifp->pim_sock_fd);
   }
   pim_ifp->t_pim_sock_read = NULL;
-  zassert(!pim_ifp->t_pim_sock_read);
   THREAD_READ_ON(master, pim_ifp->t_pim_sock_read, pim_sock_read, ifp,
                 pim_ifp->pim_sock_fd);
 }