mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
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
This commit is contained in:
parent
1751a7352b
commit
614946480f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user