]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/9p/vfs_inode_dotl.c
make finish_no_open() return int
[mirror_ubuntu-artful-kernel.git] / fs / 9p / vfs_inode_dotl.c
index cfaebdef9743a96031ad52063dd3b982110bf963..1ee10c89df9747ae5bc33483c5570a58ff33b672 100644 (file)
@@ -268,10 +268,8 @@ v9fs_vfs_atomic_open_dotl(struct inode *dir, struct dentry *dentry,
        }
 
        /* Only creates */
-       if (!(flags & O_CREAT) || dentry->d_inode) {
-               finish_no_open(file, res);
-               return 1;
-       }
+       if (!(flags & O_CREAT) || dentry->d_inode)
+               return finish_no_open(file, res);
 
        v9ses = v9fs_inode2v9ses(dir);