git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
549a9bf
)
net/pcap: remove redundant assignment
author
Ferruh Yigit
<ferruh.yigit@intel.com>
Fri, 26 Aug 2016 11:17:54 +0000
(12:17 +0100)
committer
Bruce Richardson
<bruce.richardson@intel.com>
Fri, 30 Sep 2016 10:27:18 +0000
(12:27 +0200)
data->name assigned twice.
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/pcap/rte_eth_pcap.c
patch
|
blob
|
history
diff --git
a/drivers/net/pcap/rte_eth_pcap.c
b/drivers/net/pcap/rte_eth_pcap.c
index
8822506
..
7b381c5
100644
(file)
--- 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