summaryrefslogtreecommitdiff
path: root/fs/sdcardfs/lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sdcardfs/lookup.c')
-rw-r--r--fs/sdcardfs/lookup.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/sdcardfs/lookup.c b/fs/sdcardfs/lookup.c
index 676e394e07be..206f8cbc7d7d 100644
--- a/fs/sdcardfs/lookup.c
+++ b/fs/sdcardfs/lookup.c
@@ -41,8 +41,6 @@ void sdcardfs_destroy_dentry_cache(void)
void free_dentry_private_data(struct dentry *dentry)
{
- if (!dentry || !dentry->d_fsdata)
- return;
kmem_cache_free(sdcardfs_dentry_cachep, dentry->d_fsdata);
dentry->d_fsdata = NULL;
}