Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1436124ybh; Sun, 19 Jul 2020 20:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwK+tRSPijGsBFiqIiDQ8vvmtSdJgiXNVx8YpepOnOpy+7VwtKdaUmRxbpDOQLIn2REq8+m X-Received: by 2002:a17:906:d217:: with SMTP id w23mr19398463ejz.292.1595215308594; Sun, 19 Jul 2020 20:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595215308; cv=none; d=google.com; s=arc-20160816; b=qsQQZkvrvp/zJY3wpvLZLSFRw93yWVNrgW/12TwgBKcmm4OOq/upqjrd85Wss9mOQA /WL51mxMAO+n1zNnUDtUnMbOd9F8SqndQ4/ojB/he39n4eSx1D81XsaHnE2ms3nhlMGo J9xzHL4MmLuHGS87k/GVvSb9P1gtVO/5jooPtGMJuFWJt6V00aB9cxdbGFW6DEh8IuG8 l980xWpFtl4BWRtw4FsQCiy9juMQfTz3muRmYRk/+04kJL2DlUnDLThK4E+1IVAQRi5T c9bIXkgX6tslpm8lOJnGFtGUu8jy/teo6tysSmb+Vz6mHeDwlNaTN/4s8AzOPlvkSyk5 3STA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=9lexbx3JDvUTJRSAoUu9DsTYMHGj5/ScJfH9Wjf2Si0=; b=JBH8FiH8IcR2m9bQRw8lZTflJtooReDnivuuByaFMkealhNYLnUjz+ev65Fy6r69qM KWfOnxEX5beU1boQmFrNHreAYVwCYw2XvpAvExcMCDxwBPsIvVTxUT41fBBlMVFW3UsV 8L/6mWfSH0SaRx6g5uUwu3TybDOvkQJHhQHiGzyp1GwqFwPkXaEAMj/qjKQ7EEcq8qD3 XvQ8C2p6ZdCk++YRNNBsv4xePvp8vupAIQX1h0OY/+kqPkxHxG93VdxeBc/LChM9PLne LsgDFzEkX0WNrdOtNtzBpTB01RP+tRA0bDJVv8ViH9OgEINIoEYnp/L1fbRKAyr+IjHZ aobg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy14si9102513ejb.313.2020.07.19.20.21.25; Sun, 19 Jul 2020 20:21:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbgGTDU5 (ORCPT + 99 others); Sun, 19 Jul 2020 23:20:57 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:41796 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726499AbgGTDU5 (ORCPT ); Sun, 19 Jul 2020 23:20:57 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-03 (Coremail) with SMTP id rQCowAB3fwMICxVf3jTfAQ--.59253S2; Mon, 20 Jul 2020 11:10:00 +0800 (CST) From: Xu Wang To: jdmason@kudzu.us, davem@davemloft.net, kuba@kernel.org, snelson@pensando.io, hkallweit1@gmail.com, mhabets@solarflare.com, vulab@iscas.ac.cn, mst@redhat.com, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] net: vxge-main: Remove unnecessary cast in kfree() Date: Mon, 20 Jul 2020 03:09:59 +0000 Message-Id: <20200720030959.7365-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: rQCowAB3fwMICxVf3jTfAQ--.59253S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JrWxurW8uryru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vutnvoduhdfq/1tbiAgIDA1Jhbk1DqQAAs6 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecassary casts in the argument to kfree. Signed-off-by: Xu Wang --- drivers/net/ethernet/neterion/vxge/vxge-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-main.c b/drivers/net/ethernet/neterion/vxge/vxge-main.c index 9b63574b6202..3a43ec603a8b 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-main.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-main.c @@ -1075,7 +1075,7 @@ static int vxge_mac_list_del(struct vxge_vpath *vpath, struct macInfo *mac) list_for_each_safe(entry, next, &vpath->mac_addr_list) { if (((struct vxge_mac_addrs *)entry)->macaddr == del_mac) { list_del(entry); - kfree((struct vxge_mac_addrs *)entry); + kfree(entry); vpath->mac_addr_cnt--; if (is_multicast_ether_addr(mac->macaddr)) @@ -2912,7 +2912,7 @@ static void vxge_free_mac_add_list(struct vxge_vpath *vpath) list_for_each_safe(entry, next, &vpath->mac_addr_list) { list_del(entry); - kfree((struct vxge_mac_addrs *)entry); + kfree(entry); } } -- 2.17.1