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/icc.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/icc.c')
-rw-r--r-- | drivers/isdn/hisax/icc.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/icc.c b/drivers/isdn/hisax/icc.c index b4ca5859b177..c615752b96aa 100644 --- a/drivers/isdn/hisax/icc.c +++ b/drivers/isdn/hisax/icc.c | |||
@@ -571,14 +571,10 @@ setstack_icc(struct PStack *st, struct IsdnCardState *cs) | |||
571 | 571 | ||
572 | static void | 572 | static void |
573 | DC_Close_icc(struct IsdnCardState *cs) { | 573 | DC_Close_icc(struct IsdnCardState *cs) { |
574 | if (cs->dc.icc.mon_rx) { | 574 | kfree(cs->dc.icc.mon_rx); |
575 | kfree(cs->dc.icc.mon_rx); | 575 | cs->dc.icc.mon_rx = NULL; |
576 | cs->dc.icc.mon_rx = NULL; | 576 | kfree(cs->dc.icc.mon_tx); |
577 | } | 577 | cs->dc.icc.mon_tx = NULL; |
578 | if (cs->dc.icc.mon_tx) { | ||
579 | kfree(cs->dc.icc.mon_tx); | ||
580 | cs->dc.icc.mon_tx = NULL; | ||
581 | } | ||
582 | } | 578 | } |
583 | 579 | ||
584 | static void | 580 | static void |