diff options
author | Syam Sidhardhan <syamsidhardh@gmail.com> | 2013-03-05 14:33:22 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-15 16:58:32 -0400 |
commit | f3c8279d694a5c2c455cdcb3323e2349b40c542f (patch) | |
tree | 8eae53f56e5834ff370d212e97f03d2d2dbafb13 | |
parent | ef44d28c4fd94166ec6be054359ae26ba73b0291 (diff) |
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>
-rw-r--r-- | drivers/tty/ipwireless/hardware.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/ipwireless/hardware.c b/drivers/tty/ipwireless/hardware.c index 97a511f4185d..2c14842541dd 100644 --- a/drivers/tty/ipwireless/hardware.c +++ b/drivers/tty/ipwireless/hardware.c | |||
@@ -1732,8 +1732,7 @@ void ipwireless_hardware_free(struct ipw_hardware *hw) | |||
1732 | flush_work(&hw->work_rx); | 1732 | flush_work(&hw->work_rx); |
1733 | 1733 | ||
1734 | for (i = 0; i < NL_NUM_OF_ADDRESSES; i++) | 1734 | for (i = 0; i < NL_NUM_OF_ADDRESSES; i++) |
1735 | if (hw->packet_assembler[i] != NULL) | 1735 | kfree(hw->packet_assembler[i]); |
1736 | kfree(hw->packet_assembler[i]); | ||
1737 | 1736 | ||
1738 | for (i = 0; i < NL_NUM_OF_PRIORITIES; i++) | 1737 | for (i = 0; i < NL_NUM_OF_PRIORITIES; i++) |
1739 | list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) { | 1738 | list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) { |