From patchwork Thu Jul 5 17:52:25 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: 10510087 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 711AE600F5 for ; Thu, 5 Jul 2018 17:52:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5850922A68 for ; Thu, 5 Jul 2018 17:52:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A57022B26; Thu, 5 Jul 2018 17:52:28 +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 DDC3B22A68 for ; Thu, 5 Jul 2018 17:52:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753537AbeGERw0 (ORCPT ); Thu, 5 Jul 2018 13:52:26 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:11832 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753405AbeGERwZ (ORCPT ); Thu, 5 Jul 2018 13:52:25 -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=1530813145; x=1562349145; h=from:to:cc:subject:date:message-id; bh=0clqD6NXrcb/Be+D7x2nfbn9T9zHSBnqzMbDte3T37A=; b=hIet4jci/ZLW57mAQroOEY8OPl5MJII1wzF6fWps/y0tE+fhxhz09HVE tNZhbmhNxs0NDIiwZD+gB5sEhwAFNuYFjA72uYl7O6qe81/Z/Fv+AkRr7 JbF8xcFLtm2Vq7cUhmFMwzyx7vOvYCb/QxRgWV10FKMSj3WmUszItztWU EFmw0fOeMDm3fiimh6GAYHpVjbJRGmk73IpdOut5rVwm35szaeNomf8Mj KdHUT2w2M4rh+3D1QPm43tFzFiTvMKbXXmhKAHkiVrUIHiF8yRAdshSuV HPKfzLaG/vkYrA9bDnk9ookbN4hPShocfyxiQlLg2lB4996Pq1RUQ2aVB Q==; X-IronPort-AV: E=Sophos;i="5.51,313,1526313600"; d="scan'208";a="186832731" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 06 Jul 2018 01:52:25 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 05 Jul 2018 10:41:38 -0700 Received: from thinkpad-bart.sdcorp.global.sandisk.com ([10.111.67.248]) by uls-op-cesaip02.wdc.com with ESMTP; 05 Jul 2018 10:52:25 -0700 From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH] RDMA/ocrdma: Remove a set-but-not-used variable Date: Thu, 5 Jul 2018 10:52:25 -0700 Message-Id: <20180705175225.28071-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 Signed-off-by: Bart Van Assche --- drivers/infiniband/hw/ocrdma/ocrdma_ah.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c index a51b80bfadb3..8cc9459a9f9b 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_ah.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_ah.c @@ -167,13 +167,11 @@ struct ib_ah *ocrdma_create_ah(struct ib_pd *ibpd, struct rdma_ah_attr *attr, const struct ib_gid_attr *sgid_attr; struct ocrdma_pd *pd = get_ocrdma_pd(ibpd); struct ocrdma_dev *dev = get_ocrdma_dev(ibpd->device); - const struct ib_global_route *grh; if ((attr->type != RDMA_AH_ATTR_TYPE_ROCE) || !(rdma_ah_get_ah_flags(attr) & IB_AH_GRH)) return ERR_PTR(-EINVAL); - grh = rdma_ah_read_grh(attr); if (atomic_cmpxchg(&dev->update_sl, 1, 0)) ocrdma_init_service_level(dev);