From mboxrd@z Thu Jan 1 00:00:00 1970 From: Santosh Shukla Subject: [PATCH v1] mempool/octeontx: remove dead code from gpool2handle Date: Fri, 20 Oct 2017 15:39:58 +0000 Message-ID: <20171020153958.10236-1-santosh.shukla@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain Cc: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, Santosh Shukla To: dev@dpdk.org Return-path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0065.outbound.protection.outlook.com [104.47.37.65]) by dpdk.org (Postfix) with ESMTP id 2B2B51B22B for ; Fri, 20 Oct 2017 17:40:34 +0200 (CEST) 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 Issue: 195000 Fixes: 02fd6c744350 ("mempool/octeontx: support allocation") Signed-off-by: Santosh Shukla --- drivers/mempool/octeontx/octeontx_fpavf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c index 6bdfc0339..cd36a195d 100644 --- a/drivers/mempool/octeontx/octeontx_fpavf.c +++ b/drivers/mempool/octeontx/octeontx_fpavf.c @@ -176,9 +176,6 @@ octeontx_fpa_gpool2handle(uint16_t gpool) RTE_ASSERT(gpool < FPA_VF_MAX); res = &fpadev.pool[gpool]; - if (unlikely(res == NULL)) - return 0; - return (uintptr_t)res->bar0 | gpool; } -- 2.13.0