From: Wei Zhao Date: Mon, 5 Dec 2016 03:39:04 +0000 (+0800) Subject: mempool: remove redundant socket id assignment X-Git-Tag: spdx-start~5301 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e8453b9f3c3b119c0a21835e5fc39d339f477bad;p=dpdk.git mempool: remove 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") Signed-off-by: Wei Zhao Acked-by: John McNamara Acked-by: Olivier Matz --- diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index aa513b9733..1c2aed8c03 100644 --- a/lib/librte_mempool/rte_mempool.c +++ b/lib/librte_mempool/rte_mempool.c @@ -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;