summaryrefslogtreecommitdiff
path: root/pimd/pim_igmp.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-11-08 15:49:28 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-21 20:26:14 -0500
commit7f8b8a9af65212217646e3b98cd627fbac10830f (patch)
tree1bfb21e5477d9dc6be7bd28acc4c98739142bdc1 /pimd/pim_igmp.c
parent220d8a49e6fcadae3dbb7f60cf88edca819b8d65 (diff)
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_igmp.c')
-rw-r--r--pimd/pim_igmp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c
index 0ce12f1ad7..f47028b2ba 100644
--- a/pimd/pim_igmp.c
+++ b/pimd/pim_igmp.c
@@ -153,9 +153,7 @@ static int pim_igmp_other_querier_expire(struct thread *t)
{
struct igmp_sock *igmp;
- zassert(t);
igmp = THREAD_ARG(t);
- zassert(igmp);
zassert(igmp->t_other_querier_timer);
zassert(!igmp->t_igmp_query_timer);
@@ -598,11 +596,8 @@ static int pim_igmp_general_query(struct thread *t)
struct pim_interface *pim_ifp;
int query_buf_size;
- zassert(t);
-
igmp = THREAD_ARG(t);
- zassert(igmp);
zassert(igmp->interface);
zassert(igmp->interface->info);
@@ -898,9 +893,7 @@ static int igmp_group_timer(struct thread *t)
{
struct igmp_group *group;
- zassert(t);
group = THREAD_ARG(t);
- zassert(group);
if (PIM_DEBUG_IGMP_TRACE) {
char group_str[INET_ADDRSTRLEN];