[dpdk-dev] [PATCH v2 1/6] test: remove useless memset
Stephen Hemminger
stephen at networkplumber.org
Tue Apr 7 23:20:58 CEST 2015
Remove useless memset, since dev_private is created by rte_zmalloc
it must already be zero.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/test/virtual_pmd.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c
index f163562..39ecf80 100644
--- 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);
--
2.1.4
More information about the dev
mailing list