[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

vanhempi
735d5661d5
commit
3c7208f253
@@ -212,11 +212,8 @@ static void avmcs_detach(dev_link_t *link)
|
||||
|
||||
/* Unlink device structure, free pieces */
|
||||
*linkp = link->next;
|
||||
if (link->priv) {
|
||||
kfree(link->priv);
|
||||
}
|
||||
kfree(link->priv);
|
||||
kfree(link);
|
||||
|
||||
} /* avmcs_detach */
|
||||
|
||||
/*======================================================================
|
||||
|
Viittaa uudesa ongelmassa
Block a user