Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp718231ybg; Sun, 26 Jul 2020 19:38:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYRCsyn3RjuXaJ68jNgmZHVDW3jTU1QdVPh1pp4Ty0ABnjhCECIHpFsxMBrJ9NNA5uBuvu X-Received: by 2002:aa7:d4c1:: with SMTP id t1mr19347605edr.253.1595817487147; Sun, 26 Jul 2020 19:38:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595817487; cv=none; d=google.com; s=arc-20160816; b=U7sNp1XyLPmK58wjHT7QLmzi5nOH+rH2bQLTnB+77qUblNs3LFvS5v+31wpBU2I06q oYbh7MK5xDThow/nnRkTVJTo2ccD12wNaGYPf1sgUMC0DdGBepwafAe5fHCs/U/JkRBQ 11+xHAzrNhiN0dJf5zQ5SHfYsBV6bm0aX5EgtmQvHB4WYON7xRBd2AQi6/EcFLs/V4xt y3EmTBO/Uz3ecKEkB0ROkel/w7cKmdgWpcGKvq+vxu2KSpwiYmMfmsWdgOZRHaMNG+35 oLzSTQY7vqubAFJcNklJLIo2fmyrcZFotP+jdmAY/kf2Ypz8mvR3QMyTEhhr9ZAjQnlf DqzQ== 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=aC3JpxsL3P/ccsTd/aKOI8nLb2SwQhwBRwZd4ou70EQ=; b=QMB9004JsDCA/rQn3hb/vky/3rTw6gSLWAp9LdbWRRMOHGdg3lLle6pRdlyo9M8VLE I7Khozs0R3IlveZvTj7TChXJHarLj9Gpmj0THeU066FTVeY1KXiQoSHOM9+2XLlGCCIy rTJwDzS0HzVuzCIQapuV8B9/A6vEmd/WmbJVyQOSnKPbI60HYnKFNMI2DfQjJIN/kF+M XB6wJ4ojgR5wozPG8GcUTxORvT1mbBP/mxlWsFCz5fbOwWZMfWGTFlAmCgeiuoV05B4r BvehqRQ63KhbYPaGiYq0CNw/N784tDLe+YDQsrOhIoh9XnroUpiABbM6uS2iSVRN/4R5 Pknw== 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 m23si4717441eji.400.2020.07.26.19.37.42; Sun, 26 Jul 2020 19:38:07 -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 S1727118AbgG0Cdx (ORCPT + 99 others); Sun, 26 Jul 2020 22:33:53 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:55864 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726044AbgG0Cdx (ORCPT ); Sun, 26 Jul 2020 22:33:53 -0400 Received: from localhost (unknown [159.226.5.99]) by APP-05 (Coremail) with SMTP id zQCowABXng4WNh5fUhB3Aw--.24421S2; Mon, 27 Jul 2020 10:04:06 +0800 (CST) From: Xu Wang To: amitkarwar@gmail.com, ganapathi.bhat@nxp.com, huxinming820@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Xu Wang Subject: [PATCH] mwifiex: 11n_rxreorder: Remove unnecessary cast in kfree() Date: Mon, 27 Jul 2020 02:04:05 +0000 Message-Id: <20200727020405.8476-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowABXng4WNh5fUhB3Aw--.24421S2 X-Coremail-Antispam: 1U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IP: [159.226.5.99] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCAEJA18J9hW63AACsS 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/wireless/marvell/mwifiex/11n_rxreorder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c b/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c index 0bdafe9f66db..1046b59647f5 100644 --- a/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c +++ b/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c @@ -398,7 +398,7 @@ mwifiex_11n_create_rx_reorder_tbl(struct mwifiex_private *priv, u8 *ta, new_node->rx_reorder_ptr = kcalloc(win_size, sizeof(void *), GFP_KERNEL); if (!new_node->rx_reorder_ptr) { - kfree((u8 *) new_node); + kfree(new_node); mwifiex_dbg(priv->adapter, ERROR, "%s: failed to alloc reorder_ptr\n", __func__); return; -- 2.17.1