From patchwork Wed Mar 27 23:50:51 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: 10874367 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-2.web.codeaurora.org (Postfix) with ESMTP id C059D1575 for ; Wed, 27 Mar 2019 23:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A737628DCF for ; Wed, 27 Mar 2019 23:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A4B328DD1; Wed, 27 Mar 2019 23:51:31 +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 1082828A44 for ; Wed, 27 Mar 2019 23:51:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732255AbfC0XvM (ORCPT ); Wed, 27 Mar 2019 19:51:12 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:35137 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC0XvM (ORCPT ); Wed, 27 Mar 2019 19:51:12 -0400 Received: by mail-pg1-f196.google.com with SMTP id g8so10714248pgf.2 for ; Wed, 27 Mar 2019 16:51:12 -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=1kKF2KhBi/FR2oMn5OBcELJtOMnpnvXTA9s1B/2yLog=; b=SB7tCbLhgBzvpK1BZHGLY+FMTqetuC0H/m3UgJS4VsYYfOr8OvBJ6+0W/qegsNLZ+F 4wgomqZwvMPgysPXw+qweiwyzX/k2zzb3HTkxMMz/kzft4zfokowvmTEMzuII1BP3jwe zkUXYUGrZEgqVdLNMEM/NCbhK1dLQjrk5NE9aZShVEEKYhvVTU3UPHNjrnlj4etP9gdU QgFPAMgG8ac4TGPRsLe+I0iJS1HDPTnafcNc81osNV8dXCE2y7QrmUfcX6ev0KWWosv/ WfayVbcr1cowzH9NmpsWcK1D1if1z/3WS+ML+/05JlUvIOMNGZMgbuSEtovgUMMZoWkb 7ibQ== X-Gm-Message-State: APjAAAU/DEikMwz/1hlm0wYAbJGnbJlc5BlrJHiiIve8Id7AJPqhKrK3 dffa2M7hmIdlponkuWc2K6r2d5xVXdE= X-Google-Smtp-Source: APXvYqySwPPQPGlV3OpG85H+EXLrOAU6jvUlSGpn3524yp3LuPk/tsFZ5EFer5ZnZU9QLsJlLaEevw== X-Received: by 2002:aa7:8b84:: with SMTP id r4mr16187613pfd.237.1553730671654; Wed, 27 Mar 2019 16:51:11 -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 a3sm16493115pfn.182.2019.03.27.16.51.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Mar 2019 16:51:10 -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 v2 7/7] IB/qib: Remove a set-but-not-used variable Date: Wed, 27 Mar 2019 16:50:51 -0700 Message-Id: <20190327235051.67361-8-bvanassche@acm.org> X-Mailer: git-send-email 2.20.GIT In-Reply-To: <20190327235051.67361-1-bvanassche@acm.org> References: <20190327235051.67361-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. Reviewed-by: Leon Romanovsky 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 --- 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;