From patchwork Tue Nov 6 21:49:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 47911 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B83875398; Tue, 6 Nov 2018 22:49:17 +0100 (CET) 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TvR3dD9trvfJtGoc8qyQLZswwsJGPWvtSoMGsZUEn0c=; b=J3MP5yaIMqkJAWtM6XDvDfVKiskrbHgfA9eDI9CkxTUNdX0qDe7HC8OleJ8Mu43FLN R8QHRqpQYw2WaguQYB/07s6DnFPpcgeStxKi2GqhmRfZytFcaGu4LIkDk5FW86f4c5w6 KrY1esTDHWQfa5Sjg0nHbAbjLIqIX4OiMJyFjpG+1VaE4jHV54bGkL4HVqTnaH00C4nm 80q9XINTVS+8uAFnuy8T8JU/qtxhPZUfECUtRHSMJtuTIul7ENFR6Uay+e/DihIoRadd 9kaGRkEiZn9dIAvAVCBq68RYL+fxRCGBGBpgEBjT9NZ8GRtmIdNt0m0QbuTVG09he5Ko JJqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TvR3dD9trvfJtGoc8qyQLZswwsJGPWvtSoMGsZUEn0c=; b=MAw/h6/JJBipGNT+mGWsEnfjNuyYCcF6Ducpd9gWU9/iddPMG9vDqBIuQHbCj3UQBa HXZB/KQ64o7s0DEdokJQhzzo1jsIQyvA0WLg8J9xVMfTCJJuoZvejxRLnmH+dPk1krwG aDKJxaFzpN1S4o/FKzTjdI3/Bpy+ad+JZKCWoYd8grms8bMvtOi8yv6mOrO1/0t/cngM fTDGknc9rfVtRKok26PmTJO7iJAjayioPYDrL0tih/9v0X8obU7y+F33YExnARx4GHJH RqQ9aO2KdnE8NEp5BkiTR++YErLRy3tuR+OsRcORbdGqU6bM5XG+JGHM99g1A2UZib5/ R6og== X-Gm-Message-State: AGRZ1gL+Qa2J0kcwkkaj9NONQO/JfhIHtBN0q2XB7UtOuZ9g03Ty1vmR E76UfjXwK0GpsOhk6VAJhSWn8VRmmxY= X-Google-Smtp-Source: AJdET5d+elwsQ8g3/wTXI5INA1fCkXwYxCj6vX/tec/qpAWRaaM85nNhjW7xjSPJSbyuIpiPerOVYg== X-Received: by 2002:a63:5f41:: with SMTP id t62mr25361081pgb.76.1541540948182; Tue, 06 Nov 2018 13:49:08 -0800 (PST) Received: from localhost.localdomain ([167.220.103.1]) by smtp.gmail.com with ESMTPSA id y1sm5653608pfi.123.2018.11.06.13.49.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 13:49:07 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 6 Nov 2018 13:49:01 -0800 Message-Id: <20181106214901.1392-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181106214901.1392-1-stephen@networkplumber.org> References: <20181106214901.1392-1-stephen@networkplumber.org> Subject: [dpdk-dev] [RFC 5/5] pipeline: remove dead code X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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;