Skip to contentSkip to conversation

mempool: remove a redundant socket id assignment

PATCH Applied Wei Zhao 2 participants 2 messages Dec 5, 2016 – Dec 6, 2016

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH v3 1/1 mempool: remove a redundant socket id assignment

There is a redundant repetition mempool socket_id assignment in the file rte_mempool.c in function rte_mempool_create_empty. The statement "mp->socket_id = socket_id;"appear twice in line 821 and 824. One of them is redundant, so delete it.

Fixes 85226f9c526b ("mempool: introduce a function to create an empty pool")

---

v3:
--checkpatch warning fixed

v2:
--checkpatch error fixed

---
 lib/librte_mempool/rte_mempool.c | 1 -
 1 file changed, 1 deletion(-)
lib/librte_mempool/rte_mempool.c +0 -1
index aa513b9..1c2aed8 100644
@@ -818,7 +818,6 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,
 		goto exit_unlock;
 	}
 	mp->mz = mz;
-	mp->socket_id = socket_id;
 	mp->size = n;
 	mp->flags = flags;
 	mp->socket_id = socket_id;
Signature · 1 line
2.5.5
#1 lore raw

2016-12-05 11:39, Wei Zhao:

Quoted 10 lines

There is a redundant repetition mempool socket_id assignment in the file rte_mempool.c in function rte_mempool_create_empty. The statement "mp->socket_id = socket_id;"appear twice in line 821 and 824. One of them is redundant, so delete it.

Fixes 85226f9c526b ("mempool: introduce a function to create an empty pool")

Applied, thanks