Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp337728pxu; Fri, 23 Oct 2020 01:58:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzY1a5BmJDavRAzya3ADOlNhXPsLK9tm4jlpNrC+eX+PS+/x3CDE9hiKEbMGj5jy0P+do2e X-Received: by 2002:a17:906:b783:: with SMTP id dt3mr962513ejb.534.1603443522774; Fri, 23 Oct 2020 01:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603443522; cv=none; d=google.com; s=arc-20160816; b=JV1kB8YaCwyUNQDPZic8M0989CflleV9iMSSznU6L1Jew3/lx4cz3+QvOeEatrYd6K uOvfdboe74ryn9NUA9oejE9SARr6oujjgMfORKHE8hDILEOBPZiQVpxF0LeY/1fgMqJt KZR8WAC52yodLaN9cKxIQr0yj3gJjCWPNdC4mi+5k5oRYTz+JZvPa+uXpBBtC6zmeLsL 0vwA8sYh5njw14g8Wu7gS8oCVw0ic0uVRiYcMVnEKbCkI8EXxvJ4ODOt0J6MzCMxn/S0 Os59Gymsbn0HJ3XYVx4AMWPfp6xfDvudfefnngEar3lB3EUGBaZ7/cqDWBgMcyxG9sI/ u05Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=kIgTNKkOTgO4YI6QVE56QNbdwTfNs/4ITYUxJIK3qYM=; b=qY901hoW7+JrIpVi/800AJUUSmszkbGne54UNjERmhGtwsQGogMKZZ7vBE7mnb8PYp sYqDedHJptCbQceK75T7R04ICyD7DUxnHfvPnC6loHQvCaeq8z617MenXbH8nJx0YKCn r9KRLYBYNk1sX9SaH/nv/rwl5DeUHzcvY0j3zaSZkIgj0H6tNiRBRRZ3KpcUCtvouFQs eMfi8PorgZsHyqQp6CbjlqNnroWEPfzNTQ6SPi0qVmDpKC7tUEv2csIbXQAGu8JrVawq GEiK6TA0xVPHhRZI6kii1xCKyvZ1rXwpQSrINMwYy23w1yZgP8eoZp8AwJpjStLNyChk KvpA== 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 r22si433297ejc.124.2020.10.23.01.58.20; Fri, 23 Oct 2020 01:58:42 -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 S460871AbgJWI4T (ORCPT + 99 others); Fri, 23 Oct 2020 04:56:19 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:57946 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S460855AbgJWI4T (ORCPT ); Fri, 23 Oct 2020 04:56:19 -0400 Received: from ubuntu18.localdomain (unknown [124.16.141.242]) by APP-01 (Coremail) with SMTP id qwCowADHKFaimpJf_Dx1Aw--.33307S2; Fri, 23 Oct 2020 16:56:02 +0800 (CST) From: Xu Wang To: jdmason@kudzu.us, davem@davemloft.net, kuba@kernel.org, jesse.brandeburg@intel.com, christophe.jaillet@wanadoo.fr, gustavoars@kernel.org, bigeasy@linutronix.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] vxge: remove unnecessary cast in kfree() Date: Fri, 23 Oct 2020 16:55:33 +0800 Message-Id: <20201023085533.4792-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowADHKFaimpJf_Dx1Aw--.33307S2 X-Coremail-Antispam: 1UD129KBjvdXoWrtF45uFW5Kw1DtF4r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oduhdfq/1tbiCgUSA1z4jFfGsQAAsW Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary cast in the argument to kfree. Signed-off-by: Xu Wang --- drivers/net/ethernet/neterion/vxge/vxge-config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.c b/drivers/net/ethernet/neterion/vxge/vxge-config.c index f5d48d7c4ce2..da48dd85770c 100644 --- a/drivers/net/ethernet/neterion/vxge/vxge-config.c +++ b/drivers/net/ethernet/neterion/vxge/vxge-config.c @@ -1121,7 +1121,7 @@ static void __vxge_hw_blockpool_destroy(struct __vxge_hw_blockpool *blockpool) list_for_each_safe(p, n, &blockpool->free_entry_list) { list_del(&((struct __vxge_hw_blockpool_entry *)p)->item); - kfree((void *)p); + kfree(p); } return; -- 2.17.1