From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 3265DB68F for ; Thu, 19 Feb 2015 15:57:34 +0100 (CET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP; 19 Feb 2015 06:53:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,609,1418112000"; d="scan'208";a="668636967" Received: from bricha3-mobl3.ger.corp.intel.com ([10.243.20.37]) by fmsmga001.fm.intel.com with SMTP; 19 Feb 2015 06:57:18 -0800 Received: by (sSMTP sendmail emulation); Thu, 19 Feb 2015 14:57:17 +0025 Date: Thu, 19 Feb 2015 14:57:17 +0000 From: Bruce Richardson To: Stephen Hemminger Message-ID: <20150219145717.GC700@bricha3-MOBL3> References: <1423925950-5201-1-git-send-email-shemming@brocade.com> <1423925950-5201-4-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-4-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 4/6] enic: eliminate useless cast 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:57:34 -0000 On Sat, Feb 14, 2015 at 09:59:08AM -0500, Stephen Hemminger wrote: > Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson > --- > lib/librte_pmd_enic/enic_clsf.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/lib/librte_pmd_enic/enic_clsf.c b/lib/librte_pmd_enic/enic_clsf.c > index 577a382..b61d625 100644 > --- a/lib/librte_pmd_enic/enic_clsf.c > +++ b/lib/librte_pmd_enic/enic_clsf.c > @@ -121,9 +121,8 @@ int enic_fdir_add_fltr(struct enic *enic, struct rte_fdir_filter *params, > enic->fdir.stats.f_add++; > return -ENOSPC; > } > - key = (struct enic_fdir_node *)rte_zmalloc( > - "enic_fdir_node", > - sizeof(struct enic_fdir_node), 0); > + key = rte_zmalloc("enic_fdir_node", > + sizeof(struct enic_fdir_node), 0); > if (!key) { > enic->fdir.stats.f_add++; > return -ENOMEM; > -- > 2.1.4 >