diff options
Diffstat (limited to 'drivers/isdn/hisax/hfc_2bs0.c')
-rw-r--r-- | drivers/isdn/hisax/hfc_2bs0.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/hfc_2bs0.c b/drivers/isdn/hisax/hfc_2bs0.c index f978a5af8662..c964539cc43e 100644 --- a/drivers/isdn/hisax/hfc_2bs0.c +++ b/drivers/isdn/hisax/hfc_2bs0.c | |||
@@ -582,12 +582,8 @@ inithfc(struct IsdnCardState *cs) | |||
582 | void | 582 | void |
583 | releasehfc(struct IsdnCardState *cs) | 583 | releasehfc(struct IsdnCardState *cs) |
584 | { | 584 | { |
585 | if (cs->bcs[0].hw.hfc.send) { | 585 | kfree(cs->bcs[0].hw.hfc.send); |
586 | kfree(cs->bcs[0].hw.hfc.send); | 586 | cs->bcs[0].hw.hfc.send = NULL; |
587 | cs->bcs[0].hw.hfc.send = NULL; | 587 | kfree(cs->bcs[1].hw.hfc.send); |
588 | } | 588 | cs->bcs[1].hw.hfc.send = NULL; |
589 | if (cs->bcs[1].hw.hfc.send) { | ||
590 | kfree(cs->bcs[1].hw.hfc.send); | ||
591 | cs->bcs[1].hw.hfc.send = NULL; | ||
592 | } | ||
593 | } | 589 | } |