diff options
author | Klement Sekera <ksekera@cisco.com> | 2021-10-25 13:39:13 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-11-02 22:34:28 +0000 |
commit | 849b474dc4d94570a2df0cee8c7e2504e21c8b6e (patch) | |
tree | 05a01fc7ad52343109adf6f10886f96e7b3a4c1c /src | |
parent | 6ea5c4744a132ca5f21b8cffab7676a386d6ebf5 (diff) |
ip: fix coverity warning
Remove unnecessary NULL check of t0, which causes coverity to scream. t0
is always initilised to *something* by doing pool_elt_at_index().
Type: fix
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I7cf21767c43a24923e490ad40622743c17142fe2
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ip/ip_in_out_acl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/ip/ip_in_out_acl.c b/src/vnet/ip/ip_in_out_acl.c index e858c8ed9cc..2ed571a0ce0 100644 --- a/src/vnet/ip/ip_in_out_acl.c +++ b/src/vnet/ip/ip_in_out_acl.c @@ -663,7 +663,7 @@ ip_in_out_acl_inline_trace (vlib_main_t *vm, vlib_node_runtime_t *node, t->sw_if_index = ~0 == way ? 0 : vnet_buffer (b[0])->sw_if_index[way]; t->next_index = next0; - t->table_index = t0 ? t0 - tables : ~0; + t->table_index = t0 - tables; t->offset = (e0 && t0) ? vnet_classify_get_offset (t0, e0) : ~0; } |