From patchwork Thu Jul 5 23:02:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10510431 X-Patchwork-Delegate: jgg@ziepe.ca Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EEDD0600F5 for ; Thu, 5 Jul 2018 23:02:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFA7A212D8 for ; Thu, 5 Jul 2018 23:02:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D30B726D08; Thu, 5 Jul 2018 23:02:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 677C8212D8 for ; Thu, 5 Jul 2018 23:02:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753497AbeGEXCB (ORCPT ); Thu, 5 Jul 2018 19:02:01 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:2406 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753172AbeGEXCA (ORCPT ); Thu, 5 Jul 2018 19:02:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1530831720; x=1562367720; h=from:to:cc:subject:date:message-id; bh=+iyuJ0GVP/OLAGibn8Be6kpP5Zu/rlSw/QWQAUew1t4=; b=J+cW0FV7mIXBZDQvlmtnUkO9jZxFdo/P95tkcED4JUO9RAJiny4ec7c4 YqgqVJU7bjMnuYVQ2Wwfr3r4AQ2Jkq4LDNof0L5IC0wVY4ePevBYhYRem J5n3ikqAlmiVAVtKRsGNowtLVA6hdSvdWl7XCC/QW4d3a/O+nrEVXFh2D hO8f7ENoj2Uh2vMsfTdcIZEU9kvvIA7D7EOIXK760FjcyiwDFQ+plzXj/ E2ocE/n2wQy68f9G5w+PchPEYRpiSUaYQ4u7Se2IZkKmG6lrq9BB2JCLr zcTH0d9cKkBwGUtx1n4XGGsJW/hJmDmUkIEteeZNUf9Ei3ci6RHEbXJkT g==; X-IronPort-AV: E=Sophos;i="5.51,314,1526313600"; d="scan'208";a="186850090" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Jul 2018 07:02:00 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 05 Jul 2018 15:51:00 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip01.wdc.com with ESMTP; 05 Jul 2018 16:02:00 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Max Gurtovoy Subject: [PATCH] IB/iser: Remove set-but-not-used variables Date: Thu, 5 Jul 2018 16:02:00 -0700 Message-Id: <20180705230200.10379-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.18.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch does not change any functionality. Signed-off-by: Bart Van Assche Cc: Max Gurtovoy --- drivers/infiniband/ulp/iser/iscsi_iser.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 61cc47da2fec..3fecd87c9f2b 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c @@ -610,12 +610,10 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep, uint32_t initial_cmdsn) { struct iscsi_cls_session *cls_session; - struct iscsi_session *session; struct Scsi_Host *shost; struct iser_conn *iser_conn = NULL; struct ib_conn *ib_conn; u32 max_fr_sectors; - u16 max_cmds; shost = iscsi_host_alloc(&iscsi_iser_sht, 0, 0); if (!shost) @@ -661,7 +659,6 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep, mutex_unlock(&iser_conn->state_mutex); } else { shost->can_queue = min_t(u16, cmds_max, ISER_DEF_XMIT_CMDS_MAX); - max_cmds = ISER_DEF_XMIT_CMDS_MAX; if (iscsi_host_add(shost, NULL)) goto free_host; } @@ -683,7 +680,6 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep, initial_cmdsn, 0); if (!cls_session) goto remove_host; - session = cls_session->dd_data; return cls_session;