From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 33346B686 for ; Thu, 19 Feb 2015 15:59:02 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP; 19 Feb 2015 06:51:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,609,1418112000"; d="scan'208";a="668637657" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.37]) by fmsmga001.fm.intel.com with SMTP; 19 Feb 2015 06:58:58 -0800 Received: by (sSMTP sendmail emulation); Thu, 19 Feb 2015 14:58:57 +0025 Date: Thu, 19 Feb 2015 14:58:57 +0000 From: Bruce Richardson To: Stephen Hemminger Message-ID: <20150219145857.GD700@bricha3-MOBL3> References: <1423925950-5201-1-git-send-email-shemming@brocade.com> <1423925950-5201-5-git-send-email-shemming@brocade.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423925950-5201-5-git-send-email-shemming@brocade.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org, Stephen Hemminger Subject: Re: [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: Thu, 19 Feb 2015 14:59:02 -0000 On Sat, Feb 14, 2015 at 09:59:09AM -0500, Stephen Hemminger wrote: > The path variable is set via snprintf, and does not need to > memset before that. > > Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson > --- > 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 >