summaryrefslogtreecommitdiffstats
path: root/fs/9p
diff options
context:
space:
mode:
authorGeyslan G. Bem <geyslan@gmail.com>2013-10-21 15:53:45 -0300
committerEric Van Hensbergen <ericvh@gmail.com>2013-11-23 16:10:31 -0600
commitdd2a0a35c3121a88af3c2228a0bc497b5e4a7f56 (patch)
tree020b668158cde3fc76b2090bee98a34fc836e659 /fs/9p
parentbdd5c28dcb8330b9074404cc92a0b83aae5606a9 (diff)
downloadlinux-dd2a0a35c3121a88af3c2228a0bc497b5e4a7f56.tar.gz
linux-dd2a0a35c3121a88af3c2228a0bc497b5e4a7f56.tar.bz2
linux-dd2a0a35c3121a88af3c2228a0bc497b5e4a7f56.zip
9p: remove useless 'name' variable and assignment
There is no use of 'name' pointer. Get rid of its useless assignment. Signed-off-by: Geyslan G. Bem <geyslan@gmail.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p')
-rw-r--r--fs/9p/vfs_inode_dotl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/9p/vfs_inode_dotl.c b/fs/9p/vfs_inode_dotl.c
index ecacec098fbb..98013068f35b 100644
--- a/fs/9p/vfs_inode_dotl.c
+++ b/fs/9p/vfs_inode_dotl.c
@@ -763,7 +763,6 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
struct dentry *dentry)
{
int err;
- char *name;
struct dentry *dir_dentry;
struct p9_fid *dfid, *oldfid;
struct v9fs_session_info *v9ses;
@@ -781,8 +780,6 @@ v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir,
if (IS_ERR(oldfid))
return PTR_ERR(oldfid);
- name = (char *) dentry->d_name.name;
-
err = p9_client_link(dfid, oldfid, (char *)dentry->d_name.name);
if (err < 0) {