]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/hostfs/hostfs_kern.c
[PATCH] kfree cleanup: fs
[mirror_ubuntu-bionic-kernel.git] / fs / hostfs / hostfs_kern.c
index dd7113106269992822e97e4bbf07ad2bc5ab5eca..a33fb1d91373f873d559a26e1a8494e363ecc86c 100644 (file)
@@ -294,8 +294,7 @@ static void hostfs_delete_inode(struct inode *inode)
 
 static void hostfs_destroy_inode(struct inode *inode)
 {
-       if(HOSTFS_I(inode)->host_filename)
-               kfree(HOSTFS_I(inode)->host_filename);
+       kfree(HOSTFS_I(inode)->host_filename);
 
        /*XXX: This should not happen, probably. The check is here for
         * additional safety.*/