lib/librte_mempool: a redundant of socket_id assignment
PATCH 1/1 lib/librte_mempool: a redundant of socket_id assignment
From: zhao wei <[email protected]>
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.
a function to create an empty pool")
--- lib/librte_mempool/rte_mempool.c | 1 - 1 file changed, 1 deletion(-)
lib/librte_mempool/rte_mempool.c +0 -1
@@ -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
Quoted 13 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Monday, November 14, 2016 2:16 AM
To: [email protected]
Cc: [email protected]; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH]lib/librte_mempool: a redundant ofsocket_idassignmentFrom: zhao wei <[email protected]>
There is a redundant repetition mempool
socket_idassignment in the filerte_mempool.cin function rte_mempool_create_empty.The statement "mp-
Quoted 7 lines
Quoted 1 line
socket_id= socket_id;"appear twice in line 821 and 824.One of them isredundant, so delete it.
Fixes 85226f9c526b ("lib/librte_mempool: mempool:introduce a function tocreate an empty pool")
Signed-off-by zhao wei <[email protected]>
Titles should generally start with a verb to indicate what is being done. Something like:
lib/librte_mempool: remove redundant socket_id assignment
Apart from that.
Olivier Matz
Acked-byHi Wei,
Quoted 21 lines · John
Quoted 13 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Wei Zhao
Sent: Monday, November 14, 2016 2:16 AM
To: [email protected]
Cc: [email protected]; Zhao1, Wei <[email protected]>
Subject: [dpdk-dev] [PATCH]lib/librte_mempool: a redundant ofsocket_idassignmentFrom: zhao wei <[email protected]>
There is a redundant repetition mempool
socket_idassignment in the filerte_mempool.cin function rte_mempool_create_empty.The statement "mp-Quoted 7 lines
Quoted 1 line
socket_id= socket_id;"appear twice in line 821 and 824.One of them isredundant, so delete it.
Fixes 85226f9c526b ("lib/librte_mempool: mempool:introduce a function tocreate an empty pool")
Signed-off-by zhao wei <[email protected]>
Quoted 8 lines
Titles should generally start with a verb to indicate what is being done. Something like:
lib/librte_mempool: remove redundantsocket_idassignmentApart from that.
Acked-by John McNamara <[email protected]>
I would even say:
mempool: remove redundant socket_id assignment