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
@@ -2512,10 +2512,8 @@ static void rp_cleanup_module(void)
|
||||
"rocketport driver\n", -retval);
|
||||
put_tty_driver(rocket_driver);
|
||||
|
||||
for (i = 0; i < MAX_RP_PORTS; i++) {
|
||||
if (rp_table[i])
|
||||
kfree(rp_table[i]);
|
||||
}
|
||||
for (i = 0; i < MAX_RP_PORTS; i++)
|
||||
kfree(rp_table[i]);
|
||||
|
||||
for (i = 0; i < NUM_BOARDS; i++) {
|
||||
if (rcktpt_io_addr[i] <= 0 || is_PCI[i])
|
||||
|
||||
Reference in New Issue
Block a user