From 490a1f0a25cb444bbe18c2faf3d510ed84018b70 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 14 Feb 2015 09:59:08 -0500 Subject: [PATCH] enic: remove useless cast 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 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; -- 2.20.1