aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2021-10-13 22:06:50 +0200
committerAndrew Yourtchenko <ayourtch@gmail.com>2021-10-14 07:12:03 +0000
commite29c7e844e553fcc4356c5fe96984b18dc6156f4 (patch)
treefc47a70e4d12d16fa119c5049bffa487a7b71d75 /src/plugins
parentcbb4e460c481223282774b37add0bf9fb9e6170a (diff)
misc: fix coverity warning in ila plugin
Remove non-null check for a pointer which cannot be null to avoid dead code warning. Type: fix Signed-off-by: Klement Sekera <ksekera@cisco.com> Change-Id: I5ff40a4f80db7bb0dff9928c90ff757b763902fd
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/ila/ila.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/ila/ila.c b/src/plugins/ila/ila.c
index 366abc9831e..6e062cb6035 100644
--- a/src/plugins/ila/ila.c
+++ b/src/plugins/ila/ila.c
@@ -365,7 +365,7 @@ ila_ila2sir (vlib_main_t * vm,
{
ila_ila2sir_trace_t *tr =
vlib_add_trace (vm, node, p0, sizeof (*tr));
- tr->ila_index = ie0 ? (ie0 - ilm->entries) : ~0;
+ tr->ila_index = ie0 - ilm->entries;
tr->initial_dst = ip60->dst_address;
tr->adj_index = vnet_buffer (p0)->ip.adj_index[VLIB_TX];
}