enic: remove useless cast
authorStephen Hemminger <stephen@networkplumber.org>
Sat, 14 Feb 2015 14:59:08 +0000 (09:59 -0500)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Mar 2015 20:50:42 +0000 (21:50 +0100)
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_pmd_enic/enic_clsf.c

index 577a382..b61d625 100644 (file)
@@ -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;