Netdev List
 help / color / mirror / Atom feed
From: Fabian Frederick <fabf@skynet.be>
To: linux-kernel@vger.kernel.org
Cc: Fabian Frederick <fabf@skynet.be>, Sage Weil <sage@inktank.com>,
	"David S. Miller" <davem@davemloft.net>,
	ceph-devel@vger.kernel.org, netdev@vger.kernel.org
Subject: [PATCH 1/1 net-next] libceph: remove unused variable in handle_reply()
Date: Thu, 23 Oct 2014 18:15:59 +0200	[thread overview]
Message-ID: <1414080959-6053-1-git-send-email-fabf@skynet.be> (raw)

osdmap_epoch is redundant with reassert_epoch and unused.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 net/ceph/osd_client.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c
index f3fc54e..432bd75 100644
--- a/net/ceph/osd_client.c
+++ b/net/ceph/osd_client.c
@@ -1700,7 +1700,6 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg,
 	int err;
 	u32 reassert_epoch;
 	u64 reassert_version;
-	u32 osdmap_epoch;
 	int already_completed;
 	u32 bytes;
 	unsigned int i;
@@ -1725,7 +1724,6 @@ static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg,
 	result = ceph_decode_32(&p);
 	reassert_epoch = ceph_decode_32(&p);
 	reassert_version = ceph_decode_64(&p);
-	osdmap_epoch = ceph_decode_32(&p);
 
 	/* lookup */
 	down_read(&osdc->map_sem);
-- 
1.9.3

             reply	other threads:[~2014-10-23 16:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-23 16:15 Fabian Frederick [this message]
2014-10-23 16:25 ` [PATCH 1/1 net-next] libceph: remove unused variable in handle_reply() Ilya Dryomov
2014-10-25  9:12   ` Fabian Frederick
2014-10-25 15:05     ` Ilya Dryomov

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=1414080959-6053-1-git-send-email-fabf@skynet.be \
    --to=fabf@skynet.be \
    --cc=ceph-devel@vger.kernel.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=sage@inktank.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