diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2005-11-07 04:01:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:54:02 -0500 |
commit | 3c7208f253571ee5f157b98f0e315b5172afe092 (patch) | |
tree | e4c29817e4c097d8de9ef025b600d753d06a155e /drivers/isdn/hisax/avm_pci.c | |
parent | 735d5661d5c5f023a78fbe68e771e261040ff1b7 (diff) |
[PATCH] kfree cleanup: drivers/isdn
This is the drivers/isdn/ part of the big kfree cleanup patch.
Remove pointless checks for NULL prior to calling kfree() in drivers/isdn/.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/avm_pci.c')
-rw-r--r-- | drivers/isdn/hisax/avm_pci.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c index 625799ab0d14..5d8ee7368f7b 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c | |||
@@ -552,14 +552,10 @@ close_hdlcstate(struct BCState *bcs) | |||
552 | { | 552 | { |
553 | modehdlc(bcs, 0, 0); | 553 | modehdlc(bcs, 0, 0); |
554 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 554 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
555 | if (bcs->hw.hdlc.rcvbuf) { | 555 | kfree(bcs->hw.hdlc.rcvbuf); |
556 | kfree(bcs->hw.hdlc.rcvbuf); | 556 | bcs->hw.hdlc.rcvbuf = NULL; |
557 | bcs->hw.hdlc.rcvbuf = NULL; | 557 | kfree(bcs->blog); |
558 | } | 558 | bcs->blog = NULL; |
559 | if (bcs->blog) { | ||
560 | kfree(bcs->blog); | ||
561 | bcs->blog = NULL; | ||
562 | } | ||
563 | skb_queue_purge(&bcs->rqueue); | 559 | skb_queue_purge(&bcs->rqueue); |
564 | skb_queue_purge(&bcs->squeue); | 560 | skb_queue_purge(&bcs->squeue); |
565 | if (bcs->tx_skb) { | 561 | if (bcs->tx_skb) { |