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; }