diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-10-13 22:06:50 +0200 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2021-10-14 07:12:03 +0000 |
commit | e29c7e844e553fcc4356c5fe96984b18dc6156f4 (patch) | |
tree | fc47a70e4d12d16fa119c5049bffa487a7b71d75 /src/plugins/ila/ila.c | |
parent | cbb4e460c481223282774b37add0bf9fb9e6170a (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/ila/ila.c')
-rw-r--r-- | src/plugins/ila/ila.c | 2 |
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]; } |