From patchwork Sat Aug 20 01:19:49 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 1082002 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p7K1JNfo018981 for ; Sat, 20 Aug 2011 01:19:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751142Ab1HTBTx (ORCPT ); Fri, 19 Aug 2011 21:19:53 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:56908 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785Ab1HTBTx (ORCPT ); Fri, 19 Aug 2011 21:19:53 -0400 Received: by mail-gx0-f174.google.com with SMTP id 21so2590084gxk.19 for ; Fri, 19 Aug 2011 18:19:53 -0700 (PDT) Received: by 10.90.19.35 with SMTP id 35mr3864ags.166.1313803193007; Fri, 19 Aug 2011 18:19:53 -0700 (PDT) Received: from salusa.poochiereds.net (cpe-075-177-182-191.nc.res.rr.com [75.177.182.191]) by mx.google.com with ESMTPS id p6sm3101634anh.37.2011.08.19.18.19.52 (version=SSLv3 cipher=OTHER); Fri, 19 Aug 2011 18:19:52 -0700 (PDT) From: Jeff Layton To: smfrench@gmail.com Cc: linux-cifs@vger.kernel.org Subject: [PATCH] cifs: get rid of unused xid in cifs_get_root Date: Fri, 19 Aug 2011 21:19:49 -0400 Message-Id: <1313803189-32063-1-git-send-email-jlayton@redhat.com> X-Mailer: git-send-email 1.7.6 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Sat, 20 Aug 2011 01:19:54 +0000 (UTC) Signed-off-by: Jeff Layton Reviewed-by: Suresh Jayaraman --- fs/cifs/cifsfs.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index f93eb94..eac8e087 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -530,7 +530,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)); @@ -539,7 +538,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; @@ -568,7 +566,6 @@ cifs_get_root(struct smb_vol *vol, struct super_block *sb) dentry = ERR_PTR(-ENOENT); } } while (!IS_ERR(dentry)); - _FreeXid(xid); kfree(full_path); return dentry; }