You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] kfree cleanup: drivers/char
This is the drivers/char/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in drivers/char/. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> 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
fa671646f6
commit
735d5661d5
@@ -1416,14 +1416,11 @@ end_init:
|
||||
|
||||
/* Release locally allocated memory ... nothing placed in slots */
|
||||
free_mem_out:
|
||||
if (o_tp)
|
||||
kfree(o_tp);
|
||||
kfree(o_tp);
|
||||
if (o_tty)
|
||||
free_tty_struct(o_tty);
|
||||
if (ltp)
|
||||
kfree(ltp);
|
||||
if (tp)
|
||||
kfree(tp);
|
||||
kfree(ltp);
|
||||
kfree(tp);
|
||||
free_tty_struct(tty);
|
||||
|
||||
fail_no_mem:
|
||||
|
||||
Reference in New Issue
Block a user