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/jade.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/jade.c')
-rw-r--r-- | drivers/isdn/hisax/jade.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/jade.c b/drivers/isdn/hisax/jade.c index 363ae3179bbd..2659fecc2674 100644 --- a/drivers/isdn/hisax/jade.c +++ b/drivers/isdn/hisax/jade.c | |||
@@ -195,14 +195,10 @@ close_jadestate(struct BCState *bcs) | |||
195 | { | 195 | { |
196 | modejade(bcs, 0, bcs->channel); | 196 | modejade(bcs, 0, bcs->channel); |
197 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 197 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
198 | if (bcs->hw.hscx.rcvbuf) { | 198 | kfree(bcs->hw.hscx.rcvbuf); |
199 | kfree(bcs->hw.hscx.rcvbuf); | 199 | bcs->hw.hscx.rcvbuf = NULL; |
200 | bcs->hw.hscx.rcvbuf = NULL; | 200 | kfree(bcs->blog); |
201 | } | 201 | bcs->blog = NULL; |
202 | if (bcs->blog) { | ||
203 | kfree(bcs->blog); | ||
204 | bcs->blog = NULL; | ||
205 | } | ||
206 | skb_queue_purge(&bcs->rqueue); | 202 | skb_queue_purge(&bcs->rqueue); |
207 | skb_queue_purge(&bcs->squeue); | 203 | skb_queue_purge(&bcs->squeue); |
208 | if (bcs->tx_skb) { | 204 | if (bcs->tx_skb) { |