summaryrefslogtreecommitdiffstats
path: root/pimd/pim_pim.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-08 21:49:28 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:14 +0100
commit7f8b8a9af65212217646e3b98cd627fbac10830f (patch)
tree1bfb21e5477d9dc6be7bd28acc4c98739142bdc1 /pimd/pim_pim.c
parentpimd: Add Handler for Receive (*,G) join for (S,G,rpt) (diff)
downloadfrr-7f8b8a9af65212217646e3b98cd627fbac10830f.tar.xz
frr-7f8b8a9af65212217646e3b98cd627fbac10830f.zip
pimd: Remove unnecessary asserts
When we handle the thread arguments, there is no need to assert. As that if they are wrong, we are going down shortly anyways. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_pim.c')
-rw-r--r--pimd/pim_pim.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/pimd/pim_pim.c b/pimd/pim_pim.c
index 1e71b0ad7..80e69e276 100644
--- a/pimd/pim_pim.c
+++ b/pimd/pim_pim.c
@@ -295,11 +295,7 @@ static int pim_sock_read(struct thread *t)
ifindex_t ifindex = -1;
int result = -1; /* defaults to bad */
- zassert(t);
-
ifp = THREAD_ARG(t);
- zassert(ifp);
-
fd = THREAD_FD(t);
pim_ifp = ifp->info;
@@ -695,9 +691,7 @@ static int on_pim_hello_send(struct thread *t)
struct pim_interface *pim_ifp;
struct interface *ifp;
- zassert(t);
ifp = THREAD_ARG(t);
- zassert(ifp);
pim_ifp = ifp->info;