summaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_inode.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-02-28 01:18:14 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2013-02-28 01:18:14 -0500
commit2ea03e1d62d56c37737e43550c360b43a5e40a32 (patch)
treea95494fbf887da9450e4b3feaac18b0f60f838cc /fs/9p/vfs_inode.c
parentaaeb7ecfb48ad4c8942a26874322d8918524a04f (diff)
downloadlinux-2ea03e1d62d56c37737e43550c360b43a5e40a32.tar.bz2
9p: v9fs_fid_add() can't fail now
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p/vfs_inode.c')
-rw-r--r--fs/9p/vfs_inode.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index b5340c829de1..ce601d71a427 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -692,9 +692,7 @@ v9fs_create(struct v9fs_session_info *v9ses, struct inode *dir,
"inode creation failed %d\n", err);
goto error;
}
- err = v9fs_fid_add(dentry, fid);
- if (err < 0)
- goto error;
+ v9fs_fid_add(dentry, fid);
d_instantiate(dentry, inode);
}
return ofid;
@@ -830,9 +828,7 @@ struct dentry *v9fs_vfs_lookup(struct inode *dir, struct dentry *dentry,
inode = NULL;
goto error;
}
- result = v9fs_fid_add(dentry, fid);
- if (result < 0)
- goto error_iput;
+ v9fs_fid_add(dentry, fid);
inst_out:
/*
* If we had a rename on the server and a parallel lookup
@@ -845,7 +841,6 @@ inst_out:
if (!IS_ERR(res))
return res;
result = PTR_ERR(res);
-error_iput:
iput(inode);
error:
p9_client_clunk(fid);