cifs: get rid of unused xid in cifs_get_root
authorJeff Layton <jlayton@redhat.com>
Tue, 11 Oct 2011 10:41:32 +0000 (06:41 -0400)
committerSteve French <smfrench@gmail.com>
Thu, 13 Oct 2011 04:41:22 +0000 (23:41 -0500)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/cifsfs.c

index 03d2f6b27cc47fdfe8ae4776ec6c6d0bb9e82eb1..7986d330cbb521868e3b2e344c2f606aef3d1b96 100644 (file)
@@ -532,7 +532,6 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
        char *full_path = NULL;
        char *s, *p;
        char sep;
-       int xid;
 
        full_path = cifs_build_path_to_root(vol, cifs_sb,
                                            cifs_sb_master_tcon(cifs_sb));
@@ -541,7 +540,6 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
 
        cFYI(1, "Get root dentry for %s", full_path);
 
-       xid = GetXid();
        sep = CIFS_DIR_SEP(cifs_sb);
        dentry = dget(sb->s_root);
        p = s = full_path;
@@ -572,7 +570,6 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb)
                dput(dentry);
                dentry = child;
        } while (!IS_ERR(dentry));
-       _FreeXid(xid);
        kfree(full_path);
        return dentry;
 }