diff options
Diffstat (limited to 'drivers/isdn/hisax/hfc_2bds0.c')
-rw-r--r-- | drivers/isdn/hisax/hfc_2bds0.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/isdn/hisax/hfc_2bds0.c b/drivers/isdn/hisax/hfc_2bds0.c index 7cf87793e790..637a261c9312 100644 --- a/drivers/isdn/hisax/hfc_2bds0.c +++ b/drivers/isdn/hisax/hfc_2bds0.c | |||
@@ -1052,18 +1052,12 @@ init2bds0(struct IsdnCardState *cs) | |||
1052 | void | 1052 | void |
1053 | release2bds0(struct IsdnCardState *cs) | 1053 | release2bds0(struct IsdnCardState *cs) |
1054 | { | 1054 | { |
1055 | if (cs->bcs[0].hw.hfc.send) { | 1055 | kfree(cs->bcs[0].hw.hfc.send); |
1056 | kfree(cs->bcs[0].hw.hfc.send); | 1056 | cs->bcs[0].hw.hfc.send = NULL; |
1057 | cs->bcs[0].hw.hfc.send = NULL; | 1057 | kfree(cs->bcs[1].hw.hfc.send); |
1058 | } | 1058 | cs->bcs[1].hw.hfc.send = NULL; |
1059 | if (cs->bcs[1].hw.hfc.send) { | 1059 | kfree(cs->hw.hfcD.send); |
1060 | kfree(cs->bcs[1].hw.hfc.send); | 1060 | cs->hw.hfcD.send = NULL; |
1061 | cs->bcs[1].hw.hfc.send = NULL; | ||
1062 | } | ||
1063 | if (cs->hw.hfcD.send) { | ||
1064 | kfree(cs->hw.hfcD.send); | ||
1065 | cs->hw.hfcD.send = NULL; | ||
1066 | } | ||
1067 | } | 1061 | } |
1068 | 1062 | ||
1069 | void | 1063 | void |