From patchwork Sun Oct 18 08:25:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shraddha Barke X-Patchwork-Id: 7429651 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BEA1E9F37F for ; Sun, 18 Oct 2015 08:26:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD9662063D for ; Sun, 18 Oct 2015 08:26:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08A0220638 for ; Sun, 18 Oct 2015 08:26:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752404AbbJRIZu (ORCPT ); Sun, 18 Oct 2015 04:25:50 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36239 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbbJRIZs (ORCPT ); Sun, 18 Oct 2015 04:25:48 -0400 Received: by pacfv9 with SMTP id fv9so63194795pac.3 for ; Sun, 18 Oct 2015 01:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=GsePmkHCC3v/pMf2J4o2YNioa6psMMYbhCo9AAotqW4=; b=Qw/Ip34Gu0QcVXwizGB/1TQUIOp7itW3g112NZY0jAbGmnJTxNxkXqBOPJ8HSnNEFL 3WU7JV1jm47WlF/90mgd2hEAg5VZsqm2lJCeC7bjOZfCKNL6YoIdCum8D3UPJ4f9g/k1 984YzKFfXDk82B3v1woBrQ7hGv+9lYxiT+Qn7yQ5XbCYkhbrUDf21aggjawlMGKUBeCp afuf6UGs971sThuSv9AjtpOSAeFsXnNl61LMlcz9+yBxvDhlGLNTrmVCKx9tbYyw1sVC n+cB1kKwznJMIoN8K5txAWFMi+UEjVS3L3IdmD81anvQRlBa5G8rRrI2ZrMKvytXmIfw 3cMQ== X-Received: by 10.68.100.226 with SMTP id fb2mr27245968pbb.92.1445156747807; Sun, 18 Oct 2015 01:25:47 -0700 (PDT) Received: from shraddha-370R4E-370R4V-370R5E-3570RE-370R5V.bits-goa.ac.in ([122.15.200.115]) by smtp.gmail.com with ESMTPSA id u10sm30002143pbs.63.2015.10.18.01.25.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 18 Oct 2015 01:25:46 -0700 (PDT) From: Shraddha Barke To: Subject: [PATCH] Net: ceph: osd_client: Remove con argument in handle_reply Date: Sun, 18 Oct 2015 13:55:38 +0530 Message-Id: <1445156738-3797-1-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 Since the function handle_reply does not use it's con argument, remove it. Signed-off-by: Shraddha Barke --- net/ceph/osd_client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 80b94e3..e281f60 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c @@ -1745,8 +1745,7 @@ static void complete_request(struct ceph_osd_request *req) * handle osd op reply. either call the callback if it is specified, * or do the completion to wake up the waiting thread. */ -static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg, - struct ceph_connection *con) +static void handle_reply(struct ceph_osd_client *osdc, struct ceph_msg *msg) { void *p, *end; struct ceph_osd_request *req; @@ -2802,7 +2801,7 @@ static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) ceph_osdc_handle_map(osdc, msg); break; case CEPH_MSG_OSD_OPREPLY: - handle_reply(osdc, msg, con); + handle_reply(osdc, msg); break; case CEPH_MSG_WATCH_NOTIFY: handle_watch_notify(osdc, msg);