summaryrefslogtreecommitdiffstats
path: root/drivers/tty/ipwireless
diff options
context:
space:
mode:
authorSyam Sidhardhan <syamsidhardh@gmail.com>2013-03-06 01:03:22 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 13:58:32 -0700
commitf3c8279d694a5c2c455cdcb3323e2349b40c542f (patch)
tree8eae53f56e5834ff370d212e97f03d2d2dbafb13 /drivers/tty/ipwireless
parentef44d28c4fd94166ec6be054359ae26ba73b0291 (diff)
downloadtalos-obmc-linux-f3c8279d694a5c2c455cdcb3323e2349b40c542f.tar.gz
talos-obmc-linux-f3c8279d694a5c2c455cdcb3323e2349b40c542f.zip
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>
Diffstat (limited to 'drivers/tty/ipwireless')
-rw-r--r--drivers/tty/ipwireless/hardware.c3
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)
flush_work(&hw->work_rx);
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++)
list_for_each_entry_safe(tp, tq, &hw->tx_queue[i], queue) {
OpenPOWER on IntegriCloud