[dpdk-dev] [RFC 5/5] pipeline: remove dead code
Stephen Hemminger
stephen at networkplumber.org
Tue Nov 6 22:49:01 CET 2018
Coverity detected dead code since pointer into a global
array can never be NULL.
Coverity issue: 323523
Fixes: 96303217a606 ("pipeline: add symmetric crypto table action")
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/librte_pipeline/rte_table_action.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/librte_pipeline/rte_table_action.c b/lib/librte_pipeline/rte_table_action.c
index 537e6593e4a0..69ab41a7ab2d 100644
--- a/lib/librte_pipeline/rte_table_action.c
+++ b/lib/librte_pipeline/rte_table_action.c
@@ -1696,8 +1696,6 @@ get_block_size(const struct rte_crypto_sym_xform *xform, uint8_t cdev_id)
for (i = 0;; i++) {
cap = &dev_info.capabilities[i];
- if (!cap)
- break;
if (cap->sym.xform_type != xform->type)
continue;
--
2.17.1
More information about the dev
mailing list