From patchwork Thu Mar 21 17:24:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10864151 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 757D3139A for ; Thu, 21 Mar 2019 17:24:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51BEA2A220 for ; Thu, 21 Mar 2019 17:24:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 465AC2A29A; Thu, 21 Mar 2019 17:24:35 +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.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 E882D2A250 for ; Thu, 21 Mar 2019 17:24:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbfCURYe (ORCPT ); Thu, 21 Mar 2019 13:24:34 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34093 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbfCURYe (ORCPT ); Thu, 21 Mar 2019 13:24:34 -0400 Received: by mail-pf1-f195.google.com with SMTP id v64so4742465pfb.1 for ; Thu, 21 Mar 2019 10:24:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=raHiKfVaBqmQsY8LO+JDE8dcok0Dk3CbCTt91Qi/wdk=; b=RXHAxP1tXj23yjAnDWxkg24klHC7ewDwzkt3Nwz/jUq4W0Frl6Asv7vuDfJRiPnM0C 7BeKnSMApTxOLGS41tBVIoxAFR9PvOcOk3l3OLZzbOcYfWNepqCT62IUqhXUunUF2kxy WrfTr4F66AenuQNFLIb5MwiKWNyrFT1HCW7w+Id0Z1d64fvCbDKpKoV66CjtVsmRUOss TfnF6bV7Pyd5VG/28ys9vRqHI4ft9482amd2KsNN1TPQqiQ0d7UUiEBQ4qZf3lV/JXVw znZblsBXgJFfO0PyDZRybTFpibff/bc2LLimXtDk5QoB/mXuRYuwFJHKPYLbk08ceE3n HELQ== X-Gm-Message-State: APjAAAVC/hSLvl19WKtI+6boOw3Mmw1NEUbcrmr6sx4rOVE/wL74AKB6 ThSI/naJ2YSa4g3PFuPMGH0= X-Google-Smtp-Source: APXvYqxzLwHCLqFhE7p6bQuWpAO/peWca5xiR2g9dDZjMjyQo+JiQey6CHN0jRAKCSTDZisjrgQZHg== X-Received: by 2002:a65:4bce:: with SMTP id p14mr4468289pgr.68.1553189073359; Thu, 21 Mar 2019 10:24:33 -0700 (PDT) Received: from desktop-bart.svl.corp.google.com ([2620:15c:2cd:203:5cdc:422c:7b28:ebb5]) by smtp.gmail.com with ESMTPSA id s184sm7528549pfb.1.2019.03.21.10.24.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Mar 2019 10:24:32 -0700 (PDT) From: Bart Van Assche To: Jason Gunthorpe Cc: Leon Romanovsky , Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche , CQ Tang , Mike Marciniszyn , Dean Luick , John A Gregor , Mitko Haralanov Subject: [PATCH 8/8] IB/qib: Remove a set-but-not-used variable Date: Thu, 21 Mar 2019 10:24:17 -0700 Message-Id: <20190321172417.77869-9-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190321172417.77869-1-bvanassche@acm.org> References: <20190321172417.77869-1-bvanassche@acm.org> MIME-Version: 1.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 avoids that a compiler warning is reported when building with W=1. Cc: CQ Tang CC: Mike Marciniszyn Cc: Dean Luick Cc: John A Gregor Cc: Mitko Haralanov Fixes: 49c0e2414b20 ("IB/qib: Change SDMA progression mode depending on single- or multi-rail") # v3.15 Signed-off-by: Bart Van Assche Reviewed-by: Leon Romanovsky --- drivers/infiniband/hw/qib/qib_user_sdma.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/qib/qib_user_sdma.c b/drivers/infiniband/hw/qib/qib_user_sdma.c index 31c523b2a9f5..ef19d39a44b1 100644 --- a/drivers/infiniband/hw/qib/qib_user_sdma.c +++ b/drivers/infiniband/hw/qib/qib_user_sdma.c @@ -225,8 +225,6 @@ qib_user_sdma_queue_create(struct device *dev, int unit, int ctxt, int sctxt) if (sdma_rb_node) { sdma_rb_node->refcount++; } else { - int ret; - sdma_rb_node = kmalloc(sizeof( struct qib_user_sdma_rb_node), GFP_KERNEL); if (!sdma_rb_node) @@ -235,8 +233,7 @@ qib_user_sdma_queue_create(struct device *dev, int unit, int ctxt, int sctxt) sdma_rb_node->refcount = 1; sdma_rb_node->pid = current->pid; - ret = qib_user_sdma_rb_insert(&qib_user_sdma_rb_root, - sdma_rb_node); + qib_user_sdma_rb_insert(&qib_user_sdma_rb_root, sdma_rb_node); } pq->sdma_rb_node = sdma_rb_node;