From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by dpdk.org (Postfix) with ESMTP id B6F833796 for ; Tue, 7 Apr 2015 23:21:02 +0200 (CEST) Received: by patj18 with SMTP id j18so91388809pat.2 for ; Tue, 07 Apr 2015 14:21:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=5GuzFeIQNy67YUVfrG3yKZOrBkO4JMDku8RIhTnWnJs=; b=knutKxfu5j0gH3+xob4RZVT2JgIEMJpuCk3hMT+1c3p78Ps+VMuVLKTSCeHskVlb63 pReyM5wXHAF7lTMRP6EgKA8O//abtGISzCBJbr7xIXqycngt22oiVXo6payCDygg60NX EU8rujsPxufY6wC20gsNJ5/H1598SmSC90hN9c3vJDPwM6uXiKvAEBPSYSuxBg4hxz94 IpE+chOEZ/sq+PMk/+3BJLIgeNT5iwl+XBjPAKVB7ado0u+3Yuzn489OxIheukCE2KYP 1rKFAKQ4hDhj3baBoAsy85D/gwvZd4N5mP9q8YuCdPTcW5Zk3Twdz0EVtPrIBGCAdJb1 2LWQ== X-Gm-Message-State: ALoCoQk4I6/7kctFqid8DKdEZS25vhVDeitxejbfRKnAhPBCPKhgm5GcYolxbbcxdRlXkH00SMaV X-Received: by 10.66.196.163 with SMTP id in3mr29332757pac.70.1428441661774; Tue, 07 Apr 2015 14:21:01 -0700 (PDT) Received: from urahara.brocade.com (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id j2sm9020328pdn.44.2015.04.07.14.21.00 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 07 Apr 2015 14:21:00 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Date: Tue, 7 Apr 2015 14:20:58 -0700 Message-Id: <1428441663-3825-1-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH v2 1/6] test: remove useless memset X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Apr 2015 21:21:03 -0000 Remove useless memset, since dev_private is created by rte_zmalloc it must already be zero. Signed-off-by: Stephen Hemminger --- 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