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:
2fed860
)
app/test: remove useless memset
author
Stephen Hemminger
<stephen@networkplumber.org>
Tue, 7 Apr 2015 21:20:58 +0000
(14:20 -0700)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Mon, 13 Apr 2015 20:50:09 +0000
(22:50 +0200)
Remove useless memset, since dev_private is created by rte_zmalloc
it must already be zero.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
app/test/virtual_pmd.c
patch
|
blob
|
history
diff --git
a/app/test/virtual_pmd.c
b/app/test/virtual_pmd.c
index
f163562
..
39ecf80
100644
(file)
--- a/
app/test/virtual_pmd.c
+++ b/
app/test/virtual_pmd.c
@@
-565,8
+565,6
@@
virtual_ethdev_create(const char *name, struct ether_addr *mac_addr,
if (dev_private == NULL)
goto err;
- memset(dev_private, 0, sizeof(*dev_private));
-
snprintf(name_buf, sizeof(name_buf), "%s_rxQ", name);
dev_private->rx_queue = rte_ring_create(name_buf, MAX_PKT_BURST, socket_id,
0);