enic: remove useless cast

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
Stephen Hemminger 2015-02-14 09:59:08 -05:00 committed by Thomas Monjalon
parent d886477be7
commit 490a1f0a25

View 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;