Skip to content
Snippets Groups Projects
Commit c9e5f88a authored by Daniel Rosenberg's avatar Daniel Rosenberg
Browse files

ANDROID: sdcardfs: remove unneeded null check


As pointed out by checkpatch, these functions already
handle null inputs, so the checks are not needed.

Signed-off-by: default avatarDaniel Rosenberg <drosen@google.com>
Bug: 35331000
Change-Id: I189342f032dfcefee36b27648bb512488ad61d20
parent 873b13d8
Branches
Tags
No related merge requests found
......@@ -36,7 +36,6 @@ int sdcardfs_init_dentry_cache(void)
void sdcardfs_destroy_dentry_cache(void)
{
if (sdcardfs_dentry_cachep)
kmem_cache_destroy(sdcardfs_dentry_cachep);
}
......
......@@ -894,6 +894,5 @@ void packagelist_exit(void)
{
configfs_sdcardfs_exit();
packagelist_destroy();
if (hashtable_entry_cachep)
kmem_cache_destroy(hashtable_entry_cachep);
}
......@@ -222,7 +222,6 @@ int sdcardfs_init_inode_cache(void)
/* sdcardfs inode cache destructor */
void sdcardfs_destroy_inode_cache(void)
{
if (sdcardfs_inode_cachep)
kmem_cache_destroy(sdcardfs_inode_cachep);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment