From patchwork Wed Jan 30 14:13:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kamal Heib X-Patchwork-Id: 10788657 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 016DD14E1 for ; Wed, 30 Jan 2019 14:14:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1F5A27B81 for ; Wed, 30 Jan 2019 14:14:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67AC27FB1; Wed, 30 Jan 2019 14:14:05 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,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 89FA927B81 for ; Wed, 30 Jan 2019 14:14:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727789AbfA3OOF (ORCPT ); Wed, 30 Jan 2019 09:14:05 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37268 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725768AbfA3OOE (ORCPT ); Wed, 30 Jan 2019 09:14:04 -0500 Received: by mail-wm1-f67.google.com with SMTP id g67so21727430wmd.2 for ; Wed, 30 Jan 2019 06:14:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sPloiXooMPHKgbGXJ7jE1a3ldYcfhtz0cmNuzWBtDYw=; b=kcIpqC+nVQJPpVl35eNrjoWMS/ZDjD1XP1aCSN6wT6ugZsym/6VY6z9WdAScT34U8n qanEoq4YZLO3wsNmA2QKR8J1JCJBvcaUXe34EwS9XuxdjuT1mRGdri/bkGUUruD7nzNm IRZq6FgYG9NIGLGPoj2bV9M752Fq2HQ/7x3yxzW5krLXHcYeDDMRePM9rnlgtJDlvGT9 5fGN4fQuaVYgThXCFuIv8Br6CLAZal9X+MtXkLdC1uVIdkFPO/aeA88V4ivG1kicH5Kf X+1KGiG+3SwiLs0LDj9UxHG/uivWygySFlOqZRwxhJ7U6WNucvfdSN981tpqdy7Zo7mM n8qA== 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=sPloiXooMPHKgbGXJ7jE1a3ldYcfhtz0cmNuzWBtDYw=; b=RIckPcEGHJ9aIdwSnJDS26VGULWH/Veu2o/2rUacJoGlx7SY7sdvuGLgYx2qPfk3iA eh0KWTIRc3wpFGRVukAlsU+z6z8pkQhbS5qFEOXnlh1NmDvPakF9xW1f1KyTXm2vF8SQ 8SrUlwa4Qf/uSOXRNpaqeQmV6OfNnEezykfF6UTTIQ1NMKdRqrrRPllFw6XrbzuN+QJJ WMbseRtQx3jZdelQJrbvpyUy+nRQAkv8Q3Th2ZfH/XRjj4x/luvWUuRIviQ/1N19Oa7o 5BwRTZp8hK/MFkL2D7sexgQH50oa9gIgYy7ZgqGbhfBKELpjrLJnPpz2osulMQHkGEhg R3jw== X-Gm-Message-State: AJcUukf8Q888ypI1JCADq/HOmlNfDN9RqzAmmA48l5iItIAtr/6QYiW4 s7TpchRa+2S0xpRzI/lBIBs= X-Google-Smtp-Source: ALg8bN5wwpo7zXnALF6JQ7FOyxJxlj+3wG7n3caHQwjeNYCEQ18pz1joYUGsYiUFwSmQAC2tz9T4Lg== X-Received: by 2002:a7b:c397:: with SMTP id s23mr24708562wmj.127.1548857643069; Wed, 30 Jan 2019 06:14:03 -0800 (PST) Received: from kheib-workstation.redhat.com ([192.116.94.216]) by smtp.gmail.com with ESMTPSA id l20sm2859057wrb.93.2019.01.30.06.14.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 Jan 2019 06:14:02 -0800 (PST) From: Kamal Heib To: Doug Ledford , Jason Gunthorpe , Leon Romanovsky Cc: linux-rdma@vger.kernel.org, Kamal Heib Subject: [PATCH for-next 2/2] IB/mlx5: Remove set but not used variable Date: Wed, 30 Jan 2019 16:13:43 +0200 Message-Id: <20190130141343.9129-3-kamalheib1@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190130141343.9129-1-kamalheib1@gmail.com> References: <20190130141343.9129-1-kamalheib1@gmail.com> 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 Remove 'del_mkey' variable that is set but not used. Fixes: 534fd7aac56a ("IB/mlx5: Manage indirection mkey upon DEVX flow for ODP") Signed-off-by: Kamal Heib Acked-by: Leon Romanovsky --- drivers/infiniband/hw/mlx5/devx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/devx.c b/drivers/infiniband/hw/mlx5/devx.c index bbf9a26d8fa6..62e32f0e00a2 100644 --- a/drivers/infiniband/hw/mlx5/devx.c +++ b/drivers/infiniband/hw/mlx5/devx.c @@ -1096,12 +1096,10 @@ static void devx_free_indirect_mkey(struct rcu_head *rcu) static void devx_cleanup_mkey(struct devx_obj *obj) { struct mlx5_mkey_table *table = &obj->mdev->priv.mkey_table; - struct mlx5_core_mkey *del_mkey; unsigned long flags; write_lock_irqsave(&table->lock, flags); - del_mkey = radix_tree_delete(&table->tree, - mlx5_base_mkey(obj->devx_mr.mmkey.key)); + radix_tree_delete(&table->tree, mlx5_base_mkey(obj->devx_mr.mmkey.key)); write_unlock_irqrestore(&table->lock, flags); }