From patchwork Tue Jan 14 15:45:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 3486291 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9CCB9C02DC for ; Tue, 14 Jan 2014 15:45:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A50122021E for ; Tue, 14 Jan 2014 15:45:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9DDAC20213 for ; Tue, 14 Jan 2014 15:45:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751437AbaANPpi (ORCPT ); Tue, 14 Jan 2014 10:45:38 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:64110 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430AbaANPpi (ORCPT ); Tue, 14 Jan 2014 10:45:38 -0500 Received: by mail-ee0-f46.google.com with SMTP id c13so216802eek.5 for ; Tue, 14 Jan 2014 07:45:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Cd3HFEdLmp06JGkUoSbik0l+Lxn3mC2H/ImqyUkHVX0=; b=Ph+h5qAfxPZ+3Opdbb3PN2RBu0Fx0+3yfDQqs/vgYjbOwBDT7nbsJR6+Ll2R2Ug6te q7pkWbdrBR7xwFUmfJO+YnZglolc/0byLxruHEvaxkhCZcA0FSvEhHIn+0wbbgCnP3Mv AVOF4mIavWx8J3S+0Oohw/vudq4FYJdZ0GgWTkMHf7ojANwJlbqU4K1lNEk3pmOoGxht RczInHZ+y0rkivhSxPnq8mKlmNV53dBgdrX9v5aU9ZLe8bzv1TEDZvUtD7L+nIl/HXvZ QFUNex8zdO9Tif3UeYNoGGCc/LCukCB4mAGV0nNrSkx5S/ByEByimFSSWUfY2vkjbRry W4wA== X-Gm-Message-State: ALoCoQl14JJDoE1RDua0r8VhVsvIF4PQJw40fS7NwbOQOZ4rTGRvziJ9Z3qdqek7z+G0FwGxOMJu X-Received: by 10.15.75.200 with SMTP id l48mr2841074eey.109.1389714334867; Tue, 14 Jan 2014 07:45:34 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id z46sm2642131een.1.2014.01.14.07.45.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 14 Jan 2014 07:45:34 -0800 (PST) From: Eli Cohen To: roland@kernel.org Cc: linux-rdma@vger.kernel.org, davem@davemloft.net, ogerlitz@mellanox.com, Eli Cohen Subject: [PATCH for-next 01/14] IB/mlx5: Remove unused coded in mr.c Date: Tue, 14 Jan 2014 17:45:10 +0200 Message-Id: <1389714323-20130-2-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1389714323-20130-1-git-send-email-eli@mellanox.com> References: <1389714323-20130-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The variable start in struct mlx5_ib_mr is never used. Remove it. Signed-off-by: Eli Cohen --- drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 - drivers/infiniband/hw/mlx5/mr.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index 4c134d9..5acef30 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -264,7 +264,6 @@ struct mlx5_ib_mr { enum ib_wc_status status; struct mlx5_ib_dev *dev; struct mlx5_create_mkey_mbox_out out; - unsigned long start; }; struct mlx5_ib_fast_reg_page_list { diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c index 039c3e4..7c95ca1 100644 --- a/drivers/infiniband/hw/mlx5/mr.c +++ b/drivers/infiniband/hw/mlx5/mr.c @@ -146,7 +146,6 @@ static int add_keys(struct mlx5_ib_dev *dev, int c, int num) spin_lock_irq(&ent->lock); ent->pending++; spin_unlock_irq(&ent->lock); - mr->start = jiffies; err = mlx5_core_create_mkey(&dev->mdev, &mr->mmr, in, sizeof(*in), reg_mr_callback, mr, &mr->out);