From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 5525858C5 for ; Mon, 5 Dec 2016 04:39:59 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 04 Dec 2016 19:39:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,302,1477983600"; d="scan'208";a="198964860" Received: from dpdk1.bj.intel.com ([172.16.182.84]) by fmsmga004.fm.intel.com with ESMTP; 04 Dec 2016 19:39:57 -0800 From: Wei Zhao To: dev@dpdk.org Cc: olivier.matz@6wind.com, zhao wei Date: Mon, 5 Dec 2016 11:36:18 +0800 Message-Id: <1480908978-34355-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH v3] mempool: remove a redundant socket id assignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 03:39:59 -0000 From: zhao wei 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 --- lib/librte_mempool/rte_mempool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c index aa513b9..1c2aed8 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; -- 2.5.5