diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2020-07-27 04:04:05 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-08-02 16:56:09 +0200 |
commit | 614946480f8f7de9ad077bca36e0c433e426a3dd (patch) | |
tree | 6a5234c408819dca9a135ac2f5d64454ce3a4067 | |
parent | rtlwifi: btcoex: use %*ph to print small buffer (diff) | |
download | linux-614946480f8f7de9ad077bca36e0c433e426a3dd.tar.xz linux-614946480f8f7de9ad077bca36e0c433e426a3dd.zip |
mwifiex: 11n_rxreorder: Remove unnecessary cast in kfree()
Remove unnecassary casts in the argument to kfree.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200727020405.8476-1-vulab@iscas.ac.cn
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |