From 1513fc302300f309a3a14d3d88ebafc223d54057 Mon Sep 17 00:00:00 2001 From: Santosh Shukla Date: Fri, 20 Oct 2017 15:39:58 +0000 Subject: [PATCH] mempool/octeontx: remove dead code Coverity Issue: 195000 Fixes: 02fd6c744350 ("mempool/octeontx: support allocation") Signed-off-by: Santosh Shukla Acked-by: Jerin Jacob --- 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 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; } -- 2.20.1