From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ig0-f169.google.com (mail-ig0-f169.google.com [209.85.213.169]) by dpdk.org (Postfix) with ESMTP id 3FB84B4D7 for ; Sat, 14 Feb 2015 15:59:32 +0100 (CET) Received: by mail-ig0-f169.google.com with SMTP id hl2so23817154igb.0 for ; Sat, 14 Feb 2015 06:59:31 -0800 (PST) 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:in-reply-to :references; bh=BwshjU6JDzhP0wkkOIaM8yId6e2+4XDK1PIOz2Fa5YI=; b=LB28ceHTjspECi3X7WNekSbh9bbxmX/uTl/W/uc6HZw0jhjGHmSpQKd9+Y1iCMPkjN 3fMsC41T3+M3XH3rwf5kzpshMaIOEO3f7ueWIKDNwZ3PyNr3q9xfrYhE5xn5M8C7yYJ9 ghEucTcKiYGsotjdCeeNlflSio9kH2hJtkT7baIG6yGv80HhO8nq/zV2g/0RaEebzLLk ExIV4zAJPyUtnWbPpQBEJKHGcDOD1hyKCUtOwfk134ixKYb9xkQidoktaj/bpo99DvvG Bi3H3e9Pm5gM9qMYKfDKTC4v1DU82nzjFQo4H2+Bh03kzS24XeTMeeREeg/jgHZ9YLGu IC0g== X-Gm-Message-State: ALoCoQkWyZxdJbV8W7woZNIzsCUVYLPWHMLOw00iMzcq6C2QhBgd/ZAgvIFzlhFX+sWIaA2jf9Tm X-Received: by 10.42.88.9 with SMTP id a9mr20499629icm.34.1423925971738; Sat, 14 Feb 2015 06:59:31 -0800 (PST) Received: from uryu.home.lan ([67.210.173.2]) by mx.google.com with ESMTPSA id a125sm6302383ioa.40.2015.02.14.06.59.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Feb 2015 06:59:30 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Date: Sat, 14 Feb 2015 09:59:09 -0500 Message-Id: <1423925950-5201-5-git-send-email-shemming@brocade.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423925950-5201-1-git-send-email-shemming@brocade.com> References: <1423925950-5201-1-git-send-email-shemming@brocade.com> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 5/6] eal: 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: Sat, 14 Feb 2015 14:59:32 -0000 The path variable is set via snprintf, and does not need to memset before that. Signed-off-by: Stephen Hemminger --- lib/librte_eal/linuxapp/eal/eal_hugepage_info.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c index 590cb56..8d29e06 100644 --- a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c +++ b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c @@ -84,8 +84,6 @@ get_num_hugepages(const char *subdir) else nr_hp_file = "free_hugepages"; - memset(path, 0, sizeof(path)); - snprintf(path, sizeof(path), "%s/%s/%s", sys_dir_path, subdir, nr_hp_file); -- 2.1.4