Thread (187 messages) flat view 187 messages, 10 authors, 2d ago
WARM2d REVIEWED: 1 (0M)

Revision v8 of 2 in this series; 1 review trailer.

Revisions (2)
  1. v7 [diff vs current]
  2. v8 current

[PATCH v8 10/25] bus/dpaa: remove unused in_use field

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2026-09-17 20:12:25
Subsystem: the rest · Maintainer: Linus Torvalds

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 <stephen@networkplumber.org>

Acked-by: Hemant Agrawal <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help