mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02: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:
committed by
Linus Torvalds
parent
6044ec8882
commit
f99d49adf5
@@ -301,8 +301,7 @@ fail:
|
||||
if (cache) {
|
||||
while (--m >= 0)
|
||||
kfree(cache->c_indexes_hash[m]);
|
||||
if (cache->c_block_hash)
|
||||
kfree(cache->c_block_hash);
|
||||
kfree(cache->c_block_hash);
|
||||
kfree(cache);
|
||||
}
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user