net/pcap: remove redundant assignment

data->name assigned twice.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Ferruh Yigit 2016-08-26 12:17:54 +01:00 committed by Bruce Richardson
parent 549a9bf486
commit 44c788daef

View File

@ -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 = &eth_addr;
strncpy(data->name,
(*eth_dev)->data->name, strlen((*eth_dev)->data->name));
/*
* NOTE: we'll replace the data element, of originally allocated