From patchwork Thu Oct 23 16:15:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 5141721 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 06574C11AC for ; Thu, 23 Oct 2014 16:16:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 413CD201FB for ; Thu, 23 Oct 2014 16:16:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C74A2010F for ; Thu, 23 Oct 2014 16:16:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754971AbaJWQQH (ORCPT ); Thu, 23 Oct 2014 12:16:07 -0400 Received: from mailrelay012.isp.belgacom.be ([195.238.6.179]:24681 "EHLO mailrelay012.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754070AbaJWQQF (ORCPT ); Thu, 23 Oct 2014 12:16:05 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswNAB0pSVRbtA79/2dsb2JhbABcgw66QwUBdJo+gRMXAX2EMC8jgRo3iEUBuhGOTCyGJYozHYQ1BZ1djGiJRYFHATYggVw7L4JLAQEB Received: from 253.14-180-91.adsl-dyn.isp.belgacom.be (HELO localhost.localdomain) ([91.180.14.253]) by relay.skynet.be with ESMTP; 23 Oct 2014 18:16:02 +0200 From: Fabian Frederick To: linux-kernel@vger.kernel.org Cc: Fabian Frederick , Sage Weil , "David S. Miller" , 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 Message-Id: <1414080959-6053-1-git-send-email-fabf@skynet.be> X-Mailer: git-send-email 1.9.3 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP osdmap_epoch is redundant with reassert_epoch and unused. Signed-off-by: Fabian Frederick --- 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);