Commit f3c8279d694a5c2c455cdcb3323e2349b40c542f

Authored by Syam Sidhardhan
Committed by Greg Kroah-Hartman
1 parent ef44d28c4f

tty: ipwireless: Remove redundant NULL check before kfree

kfree on NULL pointer is a no-op.

Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/tty/ipwireless/hardware.c
... ... @@ -1732,8 +1732,7 @@
1732 1732 flush_work(&hw->work_rx);
1733 1733  
1734 1734 for (i = 0; i < NL_NUM_OF_ADDRESSES; i++)
1735   - if (hw->packet_assembler[i] != NULL)
1736   - kfree(hw->packet_assembler[i]);
  1735 + kfree(hw->packet_assembler[i]);
1737 1736  
1738 1737 for (i = 0; i < NL_NUM_OF_PRIORITIES; i++)
1739 1738 list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) {