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/w6692.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/w6692.c')
-rw-r--r-- | drivers/isdn/hisax/w6692.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/w6692.c b/drivers/isdn/hisax/w6692.c index 7baf8e488471..0352ee5f706c 100644 --- a/drivers/isdn/hisax/w6692.c +++ b/drivers/isdn/hisax/w6692.c | |||
@@ -819,14 +819,10 @@ close_w6692state(struct BCState *bcs) | |||
819 | { | 819 | { |
820 | W6692Bmode(bcs, 0, bcs->channel); | 820 | W6692Bmode(bcs, 0, bcs->channel); |
821 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 821 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
822 | if (bcs->hw.w6692.rcvbuf) { | 822 | kfree(bcs->hw.w6692.rcvbuf); |
823 | kfree(bcs->hw.w6692.rcvbuf); | 823 | bcs->hw.w6692.rcvbuf = NULL; |
824 | bcs->hw.w6692.rcvbuf = NULL; | 824 | kfree(bcs->blog); |
825 | } | 825 | bcs->blog = NULL; |
826 | if (bcs->blog) { | ||
827 | kfree(bcs->blog); | ||
828 | bcs->blog = NULL; | ||
829 | } | ||
830 | skb_queue_purge(&bcs->rqueue); | 826 | skb_queue_purge(&bcs->rqueue); |
831 | skb_queue_purge(&bcs->squeue); | 827 | skb_queue_purge(&bcs->squeue); |
832 | if (bcs->tx_skb) { | 828 | if (bcs->tx_skb) { |