The in_use field of struct bman_pool is set once in bman_new_pool() and never read. It has been that way since the driver was added.
Signed-off-by: Stephen Hemminger <[email protected]> Acked-by: Hemant Agrawal <[email protected]> --- drivers/bus/dpaa/base/qbman/bman.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/bus/dpaa/base/qbman/bman.c b/drivers/bus/dpaa/base/qbman/bman.c index ee4232d0a0..944170528a 100644 --- a/drivers/bus/dpaa/base/qbman/bman.c +++ b/drivers/bus/dpaa/base/qbman/bman.c @@ -62,9 +62,6 @@ struct bman_pool { /* Used for hash-table admin when using depletion notifications. */ struct bman_portal *portal; struct bman_pool *next; -#ifdef RTE_LIBRTE_DPAA_HWDEBUG - atomic_t in_use; -#endif }; static inline @@ -224,9 +221,7 @@ struct bman_pool *bman_new_pool(const struct bman_pool_params *params) if (!pool) goto err; pool->params = *params; -#ifdef RTE_LIBRTE_DPAA_HWDEBUG - atomic_set(&pool->in_use, 1); -#endif + if (params->flags & BMAN_POOL_FLAG_DYNAMIC_BPID) pool->params.bpid = bpid; -- 2.53.0

