Skip to content

Commit

Permalink
9p: remove useless 'name' variable and assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geyslan G. Bem authored and Eric Van Hensbergen committed Nov 23, 2013
1 parent bdd5c28 commit dd2a0a3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/9p/vfs_inode_dotl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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) {
Expand Down

0 comments on commit dd2a0a3

Please sign in to comment.