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/isar.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/isar.c')
-rw-r--r-- | drivers/isdn/hisax/isar.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/isdn/hisax/isar.c b/drivers/isdn/hisax/isar.c index 642a87c51295..674af673ff96 100644 --- a/drivers/isdn/hisax/isar.c +++ b/drivers/isdn/hisax/isar.c | |||
@@ -1688,10 +1688,8 @@ close_isarstate(struct BCState *bcs) | |||
1688 | { | 1688 | { |
1689 | modeisar(bcs, 0, bcs->channel); | 1689 | modeisar(bcs, 0, bcs->channel); |
1690 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 1690 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
1691 | if (bcs->hw.isar.rcvbuf) { | 1691 | kfree(bcs->hw.isar.rcvbuf); |
1692 | kfree(bcs->hw.isar.rcvbuf); | 1692 | bcs->hw.isar.rcvbuf = NULL; |
1693 | bcs->hw.isar.rcvbuf = NULL; | ||
1694 | } | ||
1695 | skb_queue_purge(&bcs->rqueue); | 1693 | skb_queue_purge(&bcs->rqueue); |
1696 | skb_queue_purge(&bcs->squeue); | 1694 | skb_queue_purge(&bcs->squeue); |
1697 | if (bcs->tx_skb) { | 1695 | if (bcs->tx_skb) { |