[dpdk-dev,4/6] enic: eliminate useless cast
Commit Message
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
lib/librte_pmd_enic/enic_clsf.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Comments
On Sat, Feb 14, 2015 at 09:59:08AM -0500, Stephen Hemminger wrote:
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
> 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
>
@@ -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;