From: Santosh Shukla Date: Fri, 20 Oct 2017 15:39:58 +0000 (+0000) Subject: mempool/octeontx: remove dead code X-Git-Tag: spdx-start~1280 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1513fc302300f309a3a14d3d88ebafc223d54057;p=dpdk.git mempool/octeontx: remove dead code Coverity Issue: 195000 Fixes: 02fd6c744350 ("mempool/octeontx: support allocation") Signed-off-by: Santosh Shukla Acked-by: Jerin Jacob --- diff --git a/drivers/mempool/octeontx/octeontx_fpavf.c b/drivers/mempool/octeontx/octeontx_fpavf.c index 8d5c2a6895..a1ace14ccd 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; }