From: Alex Shi <alex.shi@linux.alibaba.com> To: unlisted-recipients:; (no To-header on input) Cc: Alex Shi <alex.shi@linux.alibaba.com>, Jeff Layton <jlayton@kernel.org>, Sage Weil <sage@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/ceph: remove unused variable Date: Tue, 14 Jan 2020 21:17:58 +0800 [thread overview] Message-ID: <1579007878-136866-1-git-send-email-alex.shi@linux.alibaba.com> (raw) If we don't care err here, maybe better to remove it. Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Sage Weil <sage@redhat.com> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Cc: linux-kernel@vger.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
WARNING: multiple messages have this Message-ID (diff)
From: Alex Shi <alex.shi@linux.alibaba.com> Cc: Alex Shi <alex.shi@linux.alibaba.com>, Jeff Layton <jlayton@kernel.org>, Sage Weil <sage@redhat.com>, Ilya Dryomov <idryomov@gmail.com>, ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/ceph: remove unused variable Date: Tue, 14 Jan 2020 21:17:58 +0800 [thread overview] Message-ID: <1579007878-136866-1-git-send-email-alex.shi@linux.alibaba.com> (raw) If we don't care err here, maybe better to remove it. Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com> Cc: Jeff Layton <jlayton@kernel.org> Cc: Sage Weil <sage@redhat.com> Cc: Ilya Dryomov <idryomov@gmail.com> Cc: ceph-devel@vger.kernel.org Cc: linux-kernel@vger.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
next reply other threads:[~2020-01-14 13:18 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-01-14 13:17 Alex Shi [this message] 2020-01-14 13:17 ` [PATCH] fs/ceph: remove unused variable Alex Shi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1579007878-136866-1-git-send-email-alex.shi@linux.alibaba.com \ --to=alex.shi@linux.alibaba.com \ --cc=ceph-devel@vger.kernel.org \ --cc=idryomov@gmail.com \ --cc=jlayton@kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=sage@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.