diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lisp/lisp-cp/control.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/plugins/lisp/lisp-cp/control.c b/src/plugins/lisp/lisp-cp/control.c index 695d6ff039b..7293e03eea0 100644 --- a/src/plugins/lisp/lisp-cp/control.c +++ b/src/plugins/lisp/lisp-cp/control.c @@ -1132,9 +1132,6 @@ remove_mapping_if_needed (u32 mi, void *arg) locator_set_t *ls; m = pool_elt_at_index (lcm->mapping_pool, mi); - if (!m) - return; - ls = pool_elt_at_index (lcm->locator_set_pool, m->locator_set_index); if (a->is_negative) @@ -4172,9 +4169,6 @@ send_map_reply (lisp_cp_main_t * lcm, u32 mi, ip_address_t * dst, mapping_t *records = 0, *m; m = pool_elt_at_index (lcm->mapping_pool, mi); - if (!m) - return -1; - vec_add1 (records, m[0]); add_locators (lcm, &records[0], m->locator_set_index, probed_loc); clib_memset (&src, 0, sizeof (src)); |