From: Stephen Hemminger Date: Sat, 14 Feb 2015 14:59:08 +0000 (-0500) Subject: enic: remove useless cast X-Git-Tag: spdx-start~9495 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=490a1f0a25cb444bbe18c2faf3d510ed84018b70;p=dpdk.git enic: remove useless cast Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- diff --git a/lib/librte_pmd_enic/enic_clsf.c b/lib/librte_pmd_enic/enic_clsf.c index 577a382c6d..b61d6254b0 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;