9p: v9fs_fid_add() can't fail now
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
diff --git a/fs/9p/vfs_inode.c b/fs/9p/vfs_inode.c
index b5340c8..ce601d7 100644
--- a/fs/9p/vfs_inode.c
+++ b/fs/9p/vfs_inode.c
@@ -692,9 +692,7 @@
"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 @@
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 @@
if (!IS_ERR(res))
return res;
result = PTR_ERR(res);
-error_iput:
iput(inode);
error:
p9_client_clunk(fid);