Commit f3c8279d authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Greg Kroah-Hartman

tty: ipwireless: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.
Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ef44d28c
...@@ -1732,8 +1732,7 @@ void ipwireless_hardware_free(struct ipw_hardware *hw) ...@@ -1732,8 +1732,7 @@ void ipwireless_hardware_free(struct ipw_hardware *hw)
flush_work(&hw->work_rx); flush_work(&hw->work_rx);
for (i = 0; i < NL_NUM_OF_ADDRESSES; i++) for (i = 0; i < NL_NUM_OF_ADDRESSES; i++)
if (hw->packet_assembler[i] != NULL) kfree(hw->packet_assembler[i]);
kfree(hw->packet_assembler[i]);
for (i = 0; i < NL_NUM_OF_PRIORITIES; i++) for (i = 0; i < NL_NUM_OF_PRIORITIES; i++)
list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) { list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment