From patchwork Thu Mar 8 00:57:56 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: 10265721 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 18CAF602C8 for ; Thu, 8 Mar 2018 00:57:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EF5F428C63 for ; Thu, 8 Mar 2018 00:57:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E3F5728CEF; Thu, 8 Mar 2018 00:57:58 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, 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 3F78928C63 for ; Thu, 8 Mar 2018 00:57:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754834AbeCHA55 (ORCPT ); Wed, 7 Mar 2018 19:57:57 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:17495 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754741AbeCHA54 (ORCPT ); Wed, 7 Mar 2018 19:57:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1520470676; x=1552006676; h=from:to:cc:subject:date:message-id; bh=zi+fWK11ZZhxP5ckFqFH2V8VUjWn37HFNaW96UJBQ/0=; b=d6l4km5ydPFWGJl6Zf+v7UrcRHNUweIsoUClvn3WWu6PMFBH6wO9gpLF KxcNDuiFdI+G1NsmYZVA+OHjXLkJlix2NOqpAzT43/C2T6RbJcJGta5YY a7u9o2AHGohfXplobmzHKkaj1Cvct/zhF8glb6Rg45AbbR49IH/z9Qoza PgfBwViS8P8k2X+rWwVjCMPFMw5kR9YS1xKe8lN0725tJqJ0Moa/f3o1t M1AvPWrtWmcs5CrwerjX2h+Xf32v8KGieVy3LuXc701g0CZq+inyban1V lB66gWt/41oY6Cm29wA8nSkQrMvUYJ4D16xwRdBaXPZbhOPn48GcDgSPS g==; X-IronPort-AV: E=Sophos;i="5.47,438,1515427200"; d="scan'208";a="176167772" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 08 Mar 2018 08:57:56 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep01.wdc.com with ESMTP; 07 Mar 2018 16:51:47 -0800 Received: from thinkpad-bart.sdcorp.global.sandisk.com (HELO thinkpad-bart.int.fusionio.com) ([10.11.171.236]) by uls-op-cesaip01.wdc.com with ESMTP; 07 Mar 2018 16:57:57 -0800 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , Selvin Xavier , Devesh Sharma , Somnath Kotur , Sriharsha Basavapatna Subject: [PATCH] RDMA/bnxt_re: Remove an unused variable Date: Wed, 7 Mar 2018 16:57:56 -0800 Message-Id: <20180308005756.30192-1-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.16.2 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: Selvin Xavier Cc: Devesh Sharma Cc: Somnath Kotur Cc: Sriharsha Basavapatna --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 0d102623e447..ee4b546f2d54 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -1540,14 +1540,13 @@ int bnxt_re_post_srq_recv(struct ib_srq *ib_srq, struct ib_recv_wr *wr, ib_srq); struct bnxt_qplib_swqe wqe; unsigned long flags; - int rc = 0, payload_sz = 0; + int rc = 0; spin_lock_irqsave(&srq->lock, flags); while (wr) { /* Transcribe each ib_recv_wr to qplib_swqe */ wqe.num_sge = wr->num_sge; - payload_sz = bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, - wr->num_sge); + bnxt_re_build_sgl(wr->sg_list, wqe.sg_list, wr->num_sge); wqe.wr_id = wr->wr_id; wqe.type = BNXT_QPLIB_SWQE_TYPE_RECV;