From: Christos Gkekas <chris.gekas@gmail.com>
To: Gregory Farnum <gfarnum@redhat.com>, Yan Zheng <zyan@redhat.com>,
Sage Weil <sage@redhat.com>, Ilya Dryomov <idryomov@gmail.com>,
ceph-devel <ceph-devel@vger.kernel.org>,
linux-kernel@vger.kernel.org
Cc: Christos Gkekas <chris.gekas@gmail.com>
Subject: [PATCH] ceph: Delete unused variable in mds_client
Date: Sat, 14 Oct 2017 11:01:12 +0100 [thread overview]
Message-ID: <1507975272-8264-1-git-send-email-chris.gekas@gmail.com> (raw)
Variable 'err' is set but never used, so should be removed.
Signed-off-by: Christos Gkekas <chris.gekas@gmail.com>
---
fs/ceph/mds_client.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index f23c820..7cd4fd9 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3801,7 +3801,6 @@ void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg)
u32 num_fs;
u32 mount_fscid = (u32)-1;
u8 struct_v, struct_cv;
- int err = -EINVAL;
ceph_decode_need(&p, end, sizeof(u32), bad);
epoch = ceph_decode_32(&p);
@@ -3852,7 +3851,6 @@ void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg)
0, true);
ceph_monc_renew_subs(&fsc->client->monc);
} else {
- err = -ENOENT;
goto err_out;
}
return;
--
2.7.4
next reply other threads:[~2017-10-14 10:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-14 10:01 Christos Gkekas [this message]
2017-10-16 9:12 ` [PATCH] ceph: Delete unused variable in mds_client Ilya Dryomov
2017-10-16 17:44 ` Christos Gkekas
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=1507975272-8264-1-git-send-email-chris.gekas@gmail.com \
--to=chris.gekas@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=gfarnum@redhat.com \
--cc=idryomov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sage@redhat.com \
--cc=zyan@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox