From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BECBFA04FA; Wed, 8 Jan 2020 07:25:14 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 24C9E1D6F8; Wed, 8 Jan 2020 07:25:14 +0100 (CET) Received: from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14]) by dpdk.org (Postfix) with ESMTP id 6991E1D6F8 for ; Wed, 8 Jan 2020 07:25:12 +0100 (CET) Received: by valinux.co.jp (Postfix, from userid 1000) id 25D66240984; Wed, 8 Jan 2020 15:25:11 +0900 (JST) From: oda@valinux.co.jp To: dev@dpdk.org Date: Wed, 8 Jan 2020 15:25:07 +0900 Message-Id: <20200108062510.3478-2-oda@valinux.co.jp> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200108062510.3478-1-oda@valinux.co.jp> References: <20200108062510.3478-1-oda@valinux.co.jp> Subject: [dpdk-dev] [PATCH 1/4] net/vhost: remove an unused member 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Itsuro Oda remove an unused member from pmd_internal. --- drivers/net/vhost/rte_eth_vhost.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index 46f01a7f4..d4e3485ce 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -95,7 +95,6 @@ struct vhost_queue { struct pmd_internal { rte_atomic32_t dev_attached; - char *dev_name; char *iface_name; uint16_t max_queues; int vid; @@ -1008,7 +1007,6 @@ eth_dev_close(struct rte_eth_dev *dev) for (i = 0; i < dev->data->nb_tx_queues; i++) rte_free(dev->data->tx_queues[i]); - free(internal->dev_name); free(internal->iface_name); rte_free(internal); @@ -1253,9 +1251,6 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name, * - and point eth_dev structure to new eth_dev_data structure */ internal = eth_dev->data->dev_private; - internal->dev_name = strdup(name); - if (internal->dev_name == NULL) - goto error; internal->iface_name = strdup(iface_name); if (internal->iface_name == NULL) goto error; @@ -1305,10 +1300,8 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name, return data->port_id; error: - if (internal) { + if (internal) free(internal->iface_name); - free(internal->dev_name); - } rte_free(vring_state); rte_eth_dev_release_port(eth_dev); rte_free(list); -- 2.17.0