diff options
author | Florin Coras <fcoras@cisco.com> | 2021-02-15 12:51:06 -0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-02-15 20:46:17 +0000 |
commit | a0715c412767c31001f3d5d819be466728eed8f6 (patch) | |
tree | fdcc474a2db70bf202c136a98e0611115c3d8417 | |
parent | 6809538e646bf86c000dc1faba60b0a4157ad898 (diff) |
lisp: coverity fixes
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I2a55a2fe0c483359c3b42ebe93cd0e8e279131d1
-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)); |