From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com [209.85.223.181]) by dpdk.org (Postfix) with ESMTP id 1DCAEB4CD for ; Sat, 14 Feb 2015 15:59:31 +0100 (CET) Received: by iecvy18 with SMTP id vy18so25696710iec.6 for ; Sat, 14 Feb 2015 06:59:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KTEiWvxZf02aT3xy3L+ZOuWhRmABZ5cJN5Qi7Mdsc98=; b=W10WdvynjfdJglNP1owP4+IHXmPYdaxwzEIDSGO5LOahHQIOJFzIp8FLOWsSvHKQnI v97wNaguX6L7XZyokHRPYKt387tq5VFbioZUhbC6ehbncRnyzjmAuXJnpjQrGVKdjqvC gr18cYMnFmXZWsd+wHx3peKeq4ZiVspMvo8Ldg2Vl/khxgiP/URBeYVYREnQ6jlv+Zz4 2c+fI1VWxCxgYH+ZjIn752jtqsccemPaz9OM67EWN/RvxXLsNqhBmqqqG2Rnh6Kk8wd0 sZ5j2OMB7J72cd7CL2Comv+J/ppPAW5VZoi0CG9IDQZDxAVoY2zF1vUWDuQv/e8AgrFt j7Wg== X-Gm-Message-State: ALoCoQmwFfbcVt/XhsTMhz0hvcQ5WnwV8zcVvmNIYY9mhjpykvOH2G8iLhPBnJ+rqlNRC4BJccbW X-Received: by 10.42.97.66 with SMTP id m2mr11676469icn.48.1423925970409; Sat, 14 Feb 2015 06:59:30 -0800 (PST) Received: from uryu.home.lan ([67.210.173.2]) by mx.google.com with ESMTPSA id a125sm6302383ioa.40.2015.02.14.06.59.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 14 Feb 2015 06:59:29 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Date: Sat, 14 Feb 2015 09:59:08 -0500 Message-Id: <1423925950-5201-4-git-send-email-shemming@brocade.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1423925950-5201-1-git-send-email-shemming@brocade.com> References: <1423925950-5201-1-git-send-email-shemming@brocade.com> Cc: Stephen Hemminger Subject: [dpdk-dev] [PATCH 4/6] enic: eliminate useless cast X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2015 14:59:31 -0000 Signed-off-by: Stephen Hemminger --- 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