mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
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: Daniel Rosenberg <drosen@google.com> Bug: 35331000 Change-Id: I189342f032dfcefee36b27648bb512488ad61d20
This commit is contained in:
parent
1ff2bf9007
commit
def7e34e8b
3 changed files with 3 additions and 6 deletions
|
@ -36,8 +36,7 @@ int sdcardfs_init_dentry_cache(void)
|
|||
|
||||
void sdcardfs_destroy_dentry_cache(void)
|
||||
{
|
||||
if (sdcardfs_dentry_cachep)
|
||||
kmem_cache_destroy(sdcardfs_dentry_cachep);
|
||||
kmem_cache_destroy(sdcardfs_dentry_cachep);
|
||||
}
|
||||
|
||||
void free_dentry_private_data(struct dentry *dentry)
|
||||
|
|
|
@ -908,6 +908,5 @@ void packagelist_exit(void)
|
|||
{
|
||||
configfs_sdcardfs_exit();
|
||||
packagelist_destroy();
|
||||
if (hashtable_entry_cachep)
|
||||
kmem_cache_destroy(hashtable_entry_cachep);
|
||||
kmem_cache_destroy(hashtable_entry_cachep);
|
||||
}
|
||||
|
|
|
@ -222,8 +222,7 @@ 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);
|
||||
kmem_cache_destroy(sdcardfs_inode_cachep);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue