[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1579007878-136866-1-git-send-email-alex.shi@linux.alibaba.com>
Date: Tue, 14 Jan 2020 21:17:58 +0800
From: Alex Shi <alex.shi@...ux.alibaba.com>
To: unlisted-recipients:; (no To-header on input)
Cc: Alex Shi <alex.shi@...ux.alibaba.com>,
Jeff Layton <jlayton@...nel.org>, Sage Weil <sage@...hat.com>,
Ilya Dryomov <idryomov@...il.com>, ceph-devel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] fs/ceph: remove unused variable
If we don't care err here, maybe better to remove it.
Signed-off-by: Alex Shi <alex.shi@...ux.alibaba.com>
Cc: Jeff Layton <jlayton@...nel.org>
Cc: Sage Weil <sage@...hat.com>
Cc: Ilya Dryomov <idryomov@...il.com>
Cc: ceph-devel@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
---
fs/ceph/export.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ceph/export.c b/fs/ceph/export.c
index b6bfa94332c3..b7bb41cd1070 100644
--- a/fs/ceph/export.c
+++ b/fs/ceph/export.c
@@ -291,7 +291,6 @@ static struct dentry *__get_parent(struct super_block *sb,
struct ceph_mds_request *req;
struct inode *inode;
int mask;
- int err;
req = ceph_mdsc_create_request(mdsc, CEPH_MDS_OP_LOOKUPPARENT,
USE_ANY_MDS);
@@ -314,7 +313,7 @@ static struct dentry *__get_parent(struct super_block *sb,
req->r_args.getattr.mask = cpu_to_le32(mask);
req->r_num_caps = 1;
- err = ceph_mdsc_do_request(mdsc, NULL, req);
+ ceph_mdsc_do_request(mdsc, NULL, req);
inode = req->r_target_inode;
if (inode)
ihold(inode);
--
1.8.3.1
Powered by blists - more mailing lists