From: Ferruh Yigit Date: Fri, 26 Aug 2016 11:17:54 +0000 (+0100) Subject: net/pcap: remove redundant assignment X-Git-Tag: spdx-start~5858 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=44c788daef4bea0fcd07fbbbb3aea5463a2c8a6e;p=dpdk.git net/pcap: remove redundant assignment data->name assigned twice. Signed-off-by: Ferruh Yigit Acked-by: Stephen Hemminger --- diff --git a/drivers/net/pcap/rte_eth_pcap.c b/drivers/net/pcap/rte_eth_pcap.c index 88225065d3..7b381c5748 100644 --- a/drivers/net/pcap/rte_eth_pcap.c +++ b/drivers/net/pcap/rte_eth_pcap.c @@ -827,8 +827,6 @@ rte_pmd_init_internals(const char *name, const unsigned nb_rx_queues, data->nb_tx_queues = (uint16_t)nb_tx_queues; data->dev_link = pmd_link; data->mac_addrs = ð_addr; - strncpy(data->name, - (*eth_dev)->data->name, strlen((*eth_dev)->data->name)); /* * NOTE: we'll replace the data element, of originally allocated