summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPiotr Bronowski <piotrx.bronowski@intel.com>2021-02-26 01:26:42 +0100
committerFlorin Coras <florin.coras@gmail.com>2021-02-26 01:51:37 +0000
commitb80d67ca43e13305734aebf7a493bb6fbb8db31e (patch)
treea3b990faad777d2a495dddc086e91dc718ecb798 /src
parent9a804df98b37b533d3f986e31f2ee99592ef3af4 (diff)
crypto: fix coverity issue 218445
Fixes coverity issue CID 218445 (#1 of 1): Logically dead code (DEADCODE) dead_error_line: Execution cannot reach this statement: return 4294967295U;. Type: fix Signed-off-by: Piotr Bronowski <piotrx.bronowski@intel.com> Change-Id: Ibf8ee0458320d20c3adca2efa2a4bfad7c190dbe
Diffstat (limited to 'src')
-rw-r--r--src/vnet/crypto/crypto.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vnet/crypto/crypto.c b/src/vnet/crypto/crypto.c
index e52e68ed610..9d8504781a5 100644
--- a/src/vnet/crypto/crypto.c
+++ b/src/vnet/crypto/crypto.c
@@ -429,9 +429,6 @@ vnet_crypto_key_add_linked (vlib_main_t * vm,
key_crypto = pool_elt_at_index (cm->keys, index_crypto);
key_integ = pool_elt_at_index (cm->keys, index_integ);
- if (!key_crypto || !key_integ)
- return ~0;
-
linked_alg = vnet_crypto_link_algs (key_crypto->alg, key_integ->alg);
if (linked_alg == ~0)
return ~0;