mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 22:21:21 +00:00
[PATCH] kfree cleanup: fs
This is the fs/ part of the big kfree cleanup patch. Remove pointless checks for NULL prior to calling kfree() in fs/. 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:
parent
6044ec8882
commit
f99d49adf5
39 changed files with 137 additions and 245 deletions
|
@ -1088,8 +1088,7 @@ static void __exit exit_openprom_fs(void)
|
|||
unregister_filesystem(&openprom_fs_type);
|
||||
free_pages ((unsigned long)nodes, alloced);
|
||||
for (i = 0; i < aliases_nodes; i++)
|
||||
if (alias_names [i])
|
||||
kfree (alias_names [i]);
|
||||
kfree (alias_names [i]);
|
||||
nodes = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue