projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1751a73
)
mwifiex: 11n_rxreorder: Remove unnecessary cast in kfree()
author
Xu Wang
<vulab@iscas.ac.cn>
Mon, 27 Jul 2020 02:04:05 +0000
(
02:04
+0000)
committer
Kalle Valo
<kvalo@codeaurora.org>
Sun, 2 Aug 2020 14:56:09 +0000
(17:56 +0300)
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
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
b/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
index 0bdafe9f66db04b040737c2d3e03d43f67df84c6..1046b59647f52bc6bf03e0e28cd5ee2eeb56e030 100644
(file)
--- 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;