diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-11-08 15:49:28 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:14 -0500 |
| commit | 7f8b8a9af65212217646e3b98cd627fbac10830f (patch) | |
| tree | 1bfb21e5477d9dc6be7bd28acc4c98739142bdc1 /pimd/pim_msdp.c | |
| parent | 220d8a49e6fcadae3dbb7f60cf88edca819b8d65 (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_msdp.c')
| -rw-r--r-- | pimd/pim_msdp.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/pimd/pim_msdp.c b/pimd/pim_msdp.c index 9ca9244823..d8237469c8 100644 --- a/pimd/pim_msdp.c +++ b/pimd/pim_msdp.c @@ -106,9 +106,7 @@ pim_msdp_sa_state_timer_cb(struct thread *t) { struct pim_msdp_sa *sa; - zassert(t); sa = THREAD_ARG(t); - zassert(sa); if (PIM_DEBUG_MSDP_EVENTS) { pim_msdp_sa_timer_expiry_log(sa, "state"); @@ -595,9 +593,7 @@ pim_msdp_peer_hold_timer_cb(struct thread *t) { struct pim_msdp_peer *mp; - zassert(t); mp = THREAD_ARG(t); - zassert(mp); if (PIM_DEBUG_MSDP_EVENTS) { pim_msdp_peer_timer_expiry_log(mp, "hold"); @@ -630,9 +626,7 @@ pim_msdp_peer_ka_timer_cb(struct thread *t) { struct pim_msdp_peer *mp; - zassert(t); mp = THREAD_ARG(t); - zassert(mp); if (PIM_DEBUG_MSDP_EVENTS) { pim_msdp_peer_timer_expiry_log(mp, "ka"); @@ -695,9 +689,7 @@ pim_msdp_peer_cr_timer_cb(struct thread *t) { struct pim_msdp_peer *mp; - zassert(t); mp = THREAD_ARG(t); - zassert(mp); if (PIM_DEBUG_MSDP_EVENTS) { pim_msdp_peer_timer_expiry_log(mp, "connect-retry"); |
