From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by dpdk.org (Postfix) with ESMTP id BABDD1B426; Thu, 14 Feb 2019 17:29:34 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 48F5621ABB; Thu, 14 Feb 2019 11:29:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 14 Feb 2019 11:29:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=9ScLyjzlr/TEQ8nqRq/tlTR OJHIgvL+gj640jmiMdwY=; b=e+giaY/+YIy94wRAoZapi3dJkzt/SqTnEnDKwjP qjgA9acLUR1OfAIg4QpC/eXENApHdOOJrj/IZ2JeFFDReCI2HedwJjUf4nOx0qJe jcx+yMX4aRNRT+3QmBfSAG1yvlYJz8kZbDV0AJDponUHBSlOD7576xztw+ggaUgE 8nxA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=9ScLyjzlr/TEQ8nqR q/tlTROJHIgvL+gj640jmiMdwY=; b=V/ZnUcZPH3yzpmmhoFQvs2aLrgD/bsXhq USX/FFQf8r3A+7WxI/TQHANrpyOHHIGr6OsTcfN/E19KP7xS0lEigs2RYq8a5un1 bfv+FbIC0vj4RUZ20+zszB1nKNQvxQgpwPB0IB67lYYJmy4+/vNhWLHhpPDE4PoV TruvmyfpxeqLpLvbxjHOYVasJyE7Tbqxd7bb0GLZe+XQDn07zeNdDfVZo6tCYXk9 xcZpPdtGOmQlJSjztUpICrIEJ2bdVV94dIXpcgRi8Vj1uoMwKQ/QxhH/UQN4Lq50 gvH7q/mnwuBYgKNmcqMW+xeU/wTk1jcqkftJqgysLvyti9QNR5MDA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledruddthedgkeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfquhhtnecuuegrihhlohhuthemucef tddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufffkof gggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoeht hhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkphepjeejrddufeegrddvtdefrd dukeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhn rdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id 0995310318; Thu, 14 Feb 2019 11:29:32 -0500 (EST) From: Thomas Monjalon To: Ferruh Yigit , Andrew Rybchenko Cc: dev@dpdk.org, stable@dpdk.org Date: Thu, 14 Feb 2019 17:29:20 +0100 Message-Id: <20190214162921.3735-1-thomas@monjalon.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] ethdev: remove unused variable 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: Thu, 14 Feb 2019 16:29:35 -0000 When removing the old attach function, the racy variable for getting the last port id became unused. Fixes: c9cce42876f5 ("ethdev: remove deprecated attach/detach functions") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon --- lib/librte_ethdev/rte_ethdev.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/librte_ethdev/rte_ethdev.c b/lib/librte_ethdev/rte_ethdev.c index 3b1d1a560..a2b63951f 100644 --- a/lib/librte_ethdev/rte_ethdev.c +++ b/lib/librte_ethdev/rte_ethdev.c @@ -48,7 +48,6 @@ int rte_eth_dev_logtype; static const char *MZ_RTE_ETH_DEV_DATA = "rte_eth_dev_data"; struct rte_eth_dev rte_eth_devices[RTE_MAX_ETHPORTS]; -static uint16_t eth_dev_last_created_port; /* spinlock for eth device callbacks */ static rte_spinlock_t rte_eth_dev_cb_lock = RTE_SPINLOCK_INITIALIZER; @@ -445,8 +444,6 @@ eth_dev_get(uint16_t port_id) eth_dev->data = &rte_eth_dev_shared_data->data[port_id]; - eth_dev_last_created_port = port_id; - return eth_dev; } -- 2.20.1