]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pimd: Startup does not need to assert
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 12 Sep 2016 19:09:28 +0000 (15:09 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:09 +0000 (20:26 -0500)
When pim starts up there is no need to assert in pim_init
if state is not set as wanted.  Especially for qpim_debugs
as that I would like to turn on debugs before we even start
doing anything in the code.

As for the PIM_MROUTE_IS_ENABLED, the variable is set
right above it, so no need to assert on it.

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

index 881c75dfb4181304fe91ebb25d8c1a4b749b5360..94c8f20e9721accca150ad6d493adb4278e2a7fd 100644 (file)
@@ -139,9 +139,6 @@ void pim_init()
   qpim_mroute_socket_fd = -1; /* mark mroute as disabled */
   qpim_mroute_oif_highest_vif_index = -1;
 
-  zassert(!qpim_debugs);
-  zassert(!PIM_MROUTE_IS_ENABLED);
-
   qpim_inaddr_any.s_addr = PIM_NET_INADDR_ANY;
 
   /*