]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/staging/exfat/exfat_super.c
staging: exfat: remove the redundant check when kfree an object in exfat_destroy_inode
[linux.git] / drivers / staging / exfat / exfat_super.c
index 95bb606766b6b67534dddb041e963b18a1898dea..46ff33688c421f2238dc84f179ac18a5f62c83e7 100644 (file)
@@ -3498,8 +3498,7 @@ static struct inode *exfat_alloc_inode(struct super_block *sb)
 
 static void exfat_destroy_inode(struct inode *inode)
 {
-       if (EXFAT_I(inode)->target)
-               kfree(EXFAT_I(inode)->target);
+       kfree(EXFAT_I(inode)->target);
        EXFAT_I(inode)->target = NULL;
 
        kmem_cache_free(exfat_inode_cachep, EXFAT_I(inode));