From: Stephen Hemminger Date: Tue, 7 Apr 2015 21:20:58 +0000 (-0700) Subject: app/test: remove useless memset X-Git-Tag: spdx-start~9322 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=83eb33fe2ded208f403affe12615593b2396cc6c;p=dpdk.git app/test: remove useless memset Remove useless memset, since dev_private is created by rte_zmalloc it must already be zero. Signed-off-by: Stephen Hemminger Acked-by: Neil Horman --- diff --git a/app/test/virtual_pmd.c b/app/test/virtual_pmd.c index f1635629f2..39ecf8014e 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);