From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 2222C1B896 for ; Fri, 8 Feb 2019 04:44:26 +0100 (CET) Received: by mail-pf1-f195.google.com with SMTP id f132so1028300pfa.6 for ; Thu, 07 Feb 2019 19:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+rdfSmrt1AkmhfRWlkXemA1trsaMO0xOo7KWYkv61wQ=; b=Yh5Tqqa1XlntA2UaADXbE+vilHFVdoOy2tCMwqwmjfvKctYMB/bEf8UctV5OaeDBdo 3nseLzdU1tDUpM83i1QvQIA0CLR4Cfbh7wX87ynjaUvaddCioKbDdi3sx5JOQzfUiZ47 /Qq44f4fdfDDAA4rptK0CiYXB7SNpVpQfOAE0rj8rFkVL459r8sp5w+hTHXDWeq+LqW6 LCpNVcePWooZajTUW1YM5gHt/K8EKh9i9/a+74XrZKIXFQhkTqm6QyPNuicP+yb1uN7z XCoSl4ooryotWqJA/p7elz4cTAWpYT8KBiy3DASoV0m4uc2ltsVV/+JZfxQnV7V/MS4v 6ZPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+rdfSmrt1AkmhfRWlkXemA1trsaMO0xOo7KWYkv61wQ=; b=pzPfZe5Z3I8cOAkVw5ffDgBuZ9XAS2Z9rVAnsQayAoF6U7o8/35gtkiEk4sUBsQ3Y7 Epgxf2GSLoUthK5NL4QO/ShfvAgzeQCNEAfvw+yae/19Qw567PZ9Lhz6jFDtzhGLenZZ P1xMdUKnXfcF2VF/+MCKITvnW/xL+VxWz3BYmqonvB5VZ5kkBAS8RYyPdZes9li48XpC nB3qbag1oCx3cYnAgVnPmIaA95juhSUoOdTg4p5nWg+X/Gbl1F2he41peMbDftpvARJj HjLFETNemy07jBwWgcPr6FeGlkoIVwecyJqprUeHEEUFy0iQr78G1imw8PjYyX+HNzgW 2RFw== X-Gm-Message-State: AHQUAuZzAZLe8vssFW0JQ0hqG6Ll9E2PGVDEEpqp10OKiZuE2HjcC4PN HFcdfG8JJEbGixWRdSAeQHoK7csrGj8= X-Google-Smtp-Source: AHgI3IZF9tvkzj4DMh90hwyC7xPBPkNkvwgKMC+yNEQysiE1zwjYjn6yBdOteTyYJWq/oqRbUoXS6w== X-Received: by 2002:a62:ea09:: with SMTP id t9mr20756324pfh.228.1549597465292; Thu, 07 Feb 2019 19:44:25 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id i4sm873275pfj.82.2019.02.07.19.44.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Feb 2019 19:44:24 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: stable@dpdk.org, Stephen Hemminger Date: Thu, 7 Feb 2019 19:44:07 -0800 Message-Id: <20190208034407.7865-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208034407.7865-1-stephen@networkplumber.org> References: <20190208034407.7865-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] [PATCH 7/7] net/netvsc: remove unnecessary format of ether address X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2019 03:44:26 -0000 From: Stephen Hemminger The ethernet address was being converted to a string but the code using that is no longer present. Signed-off-by: Stephen Hemminger --- drivers/net/netvsc/hn_vf.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/netvsc/hn_vf.c b/drivers/net/netvsc/hn_vf.c index de278eb7b403..f68e1f9c5473 100644 --- a/drivers/net/netvsc/hn_vf.c +++ b/drivers/net/netvsc/hn_vf.c @@ -33,10 +33,8 @@ static int hn_vf_match(const struct rte_eth_dev *dev) { const struct ether_addr *mac = dev->data->mac_addrs; - char buf[32]; int i; - ether_format_addr(buf, sizeof(buf), mac); RTE_ETH_FOREACH_DEV(i) { const struct rte_eth_dev *vf_dev = &rte_eth_devices[i]; const struct ether_addr *vf_mac = vf_dev->data->mac_addrs; @@ -44,7 +42,6 @@ static int hn_vf_match(const struct rte_eth_dev *dev) if (vf_dev == dev) continue; - ether_format_addr(buf, sizeof(buf), vf_mac); if (is_same_ether_addr(mac, vf_mac)) return i; } -- 2.20.1