Skip to content

Commit

Permalink
mwifiex: 11n_rxreorder: Remove unnecessary cast in kfree()
Browse files Browse the repository at this point in the history
Remove unnecassary casts in the argument to kfree.

Signed-off-by: Xu Wang <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
ISCAS-Vulab authored and Kalle Valo committed Aug 2, 2020
1 parent 1751a73 commit 6149464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6149464

Please sign in to comment.