[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>
This commit is contained in:

committed by
Linus Torvalds

parent
735d5661d5
commit
3c7208f253
@@ -570,15 +570,12 @@ setstack_isac(struct PStack *st, struct IsdnCardState *cs)
|
||||
}
|
||||
|
||||
static void
|
||||
DC_Close_isac(struct IsdnCardState *cs) {
|
||||
if (cs->dc.isac.mon_rx) {
|
||||
kfree(cs->dc.isac.mon_rx);
|
||||
cs->dc.isac.mon_rx = NULL;
|
||||
}
|
||||
if (cs->dc.isac.mon_tx) {
|
||||
kfree(cs->dc.isac.mon_tx);
|
||||
cs->dc.isac.mon_tx = NULL;
|
||||
}
|
||||
DC_Close_isac(struct IsdnCardState *cs)
|
||||
{
|
||||
kfree(cs->dc.isac.mon_rx);
|
||||
cs->dc.isac.mon_rx = NULL;
|
||||
kfree(cs->dc.isac.mon_tx);
|
||||
cs->dc.isac.mon_tx = NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user