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 E316C282 for ; Mon, 14 Nov 2016 03:18:58 +0100 (CET) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP; 13 Nov 2016 18:18:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,488,1473145200"; d="scan'208";a="191012076" Received: from dpdk1.bj.intel.com ([172.16.182.84]) by fmsmga004.fm.intel.com with ESMTP; 13 Nov 2016 18:18:57 -0800 From: Wei Zhao To: dev@dpdk.org Cc: olivier.matz@6wind.com, zhao wei Date: Mon, 14 Nov 2016 10:15:37 +0800 Message-Id: <1479089737-1966-1-git-send-email-wei.zhao1@intel.com> X-Mailer: git-send-email 2.5.5 Subject: [dpdk-dev] [PATCH] lib/librte_mempool: a redundant of socket_id assignment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 02:18: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 ("lib/librte_mempool: mempool:introduce a function to create an empty pool") Signed-off-by: zhao wei --- 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