aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVengada Prasad Govindan <venggovi@cisco.com>2021-02-28 06:23:39 -0800
committerNeale Ranns <neale@graphiant.com>2021-03-03 11:12:25 +0000
commit7abf16c1a260261c82aeac81a83122e12d5e4ddc (patch)
treeda68eaff8b5c6445ebf0980add2a56a91ddd486e /src
parentc3ba58cd14d6bf1cc0cd4a5e6c439613c1ec3425 (diff)
nsh: Resolve SA errors in NSH plugin.
Type: fix Change-Id: Ia923cd9302688496d28d2fd5658718b40b17cc1a Signed-off-by: Vengada Govindan <venggovi@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/nsh/nsh_pop.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/plugins/nsh/nsh_pop.c b/src/plugins/nsh/nsh_pop.c
index 46b3521ab32..90b8a73b5fb 100644
--- a/src/plugins/nsh/nsh_pop.c
+++ b/src/plugins/nsh/nsh_pop.c
@@ -110,11 +110,6 @@ nsh_pop_inline (vlib_main_t * vm,
/* Entry should point to a mapping ...*/
map0 = pool_elt_at_index(nm->nsh_mappings, entry0[0]);
- if (PREDICT_FALSE(map0 == 0))
- {
- error0 = NSH_NODE_ERROR_NO_MAPPING;
- goto trace0;
- }
/* set up things for next node to transmit ie which node to handle it and where */
next0 = map0->next_node;
@@ -163,11 +158,6 @@ nsh_pop_inline (vlib_main_t * vm,
/* Entry should point to a mapping ...*/
map1 = pool_elt_at_index(nm->nsh_mappings, entry1[0]);
- if (PREDICT_FALSE(map1 == 0))
- {
- error1 = NSH_NODE_ERROR_NO_MAPPING;
- goto trace1;
- }
/* set up things for next node to transmit ie which node to handle it and where */
next1 = map1->next_node;
@@ -249,11 +239,6 @@ nsh_pop_inline (vlib_main_t * vm,
/* Entry should point to a mapping ...*/
map0 = pool_elt_at_index(nm->nsh_mappings, entry0[0]);
- if (PREDICT_FALSE(map0 == 0))
- {
- error0 = NSH_NODE_ERROR_NO_MAPPING;
- goto trace00;
- }
/* set up things for next node to transmit ie which node to handle it and where */
next0 = map0->next_node;