mempool/octeontx: remove dead code
authorSantosh Shukla <santosh.shukla@caviumnetworks.com>
Fri, 20 Oct 2017 15:39:58 +0000 (15:39 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Oct 2017 14:51:00 +0000 (16:51 +0200)
Coverity Issue: 195000
Fixes: 02fd6c744350 ("mempool/octeontx: support allocation")

Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
drivers/mempool/octeontx/octeontx_fpavf.c

index 8d5c2a6..a1ace14 100644 (file)
@@ -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;
 }