From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [RFC 5/5] pipeline: remove dead code Date: Tue, 6 Nov 2018 13:49:01 -0800 Message-ID: <20181106214901.1392-6-stephen@networkplumber.org> References: <20181106214901.1392-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by dpdk.org (Postfix) with ESMTP id 59B6331FC for ; Tue, 6 Nov 2018 22:49:09 +0100 (CET) Received: by mail-pf1-f182.google.com with SMTP id g7-v6so4457750pfo.10 for ; Tue, 06 Nov 2018 13:49:09 -0800 (PST) In-Reply-To: <20181106214901.1392-1-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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