From patchwork Thu Jun 2 22:37:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 69208 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp344456qgf; Thu, 2 Jun 2016 15:37:28 -0700 (PDT) X-Received: by 10.98.5.133 with SMTP id 127mr1135190pff.110.1464907048030; Thu, 02 Jun 2016 15:37:28 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si1228245pat.178.2016.06.02.15.37.27; Thu, 02 Jun 2016 15:37:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161115AbcFBWhY (ORCPT + 31 others); Thu, 2 Jun 2016 18:37:24 -0400 Received: from mail-lf0-f47.google.com ([209.85.215.47]:32913 "EHLO mail-lf0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932928AbcFBWhW (ORCPT ); Thu, 2 Jun 2016 18:37:22 -0400 Received: by mail-lf0-f47.google.com with SMTP id s64so43414085lfe.0 for ; Thu, 02 Jun 2016 15:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=ygufpFmtViyMEyp2UvaFjnD0oqK05WR4KBnq4Voo2Dg=; b=GGiulSIBciq1+GJKDS7DO0sh1DvQsh5Cbj0uPhMqL1pUvXHL/Gjv/KINWVUU1yos2B AehXcS9mtxiFjfY1hk9DL5gMOFPKA41Z25mEcDngQFTXHmLMqu0lNaH39bXL0q4gaQmI y7MLsnZBvfuGQql/IeYjTbTD0McxcGhRmsfEU= 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; bh=ygufpFmtViyMEyp2UvaFjnD0oqK05WR4KBnq4Voo2Dg=; b=SG/KM6E/rjNHJsYr2aAqI9sdeZJT03Kad3uAW3FJwNxILKq/j4U+EtIXFEhAaraNwI 1os0OM3Kvbp9B6U0UsBzh8MyaZHOIIxcbXIagRiDZ8PqZIwAnXShvhVZ3WZsmVdXziTw asgZEVmaRWOi/nayG9iiHWyWVNglWSCqt0ajoS+EUwLhIQLvKNYyHqgPXeiirBFW9eO9 OV/cfcGyMpfY3GsOZtT6xCZ/0JjRgKaU4c3l4swlGUVgxoLzzIBEfuh4ndUuHRYoUAhV IgRoCLLNqnb3CN7cEh+J/Cymml0pOVa13HrzJqWbkGkQJyZMGVNPFUQIGGBhsoMBFnEL DNng== X-Gm-Message-State: ALyK8tJv8J4TUe2V70c60r1A9nMSxcQIaO4Ci/ZAvKtjp+4TxbF9Sj+QDvuDPqbkLsBKPS1F X-Received: by 10.25.19.223 with SMTP id 92mr102474lft.147.1464907040047; Thu, 02 Jun 2016 15:37:20 -0700 (PDT) Received: from localhost.localdomain ([212.90.63.58]) by smtp.gmail.com with ESMTPSA id wt10sm250913lbb.25.2016.06.02.15.37.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Jun 2016 15:37:19 -0700 (PDT) From: Ivan Khoronzhuk To: mugunthanvnm@ti.com, linux-kernel@vger.kernel.org Cc: grygorii.strashko@ti.com, linux-omap@vger.kernel.org, netdev@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH] net: ethernet: ti: cpsw: remove unused priv lock Date: Fri, 3 Jun 2016 01:37:08 +0300 Message-Id: <1464907028-19622-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no reason in this lock. At least for now. Signed-off-by: Ivan Khoronzhuk --- Based on master drivers/net/ethernet/ti/cpsw.c | 3 --- 1 file changed, 3 deletions(-) -- 1.9.1 diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 9919cb3..8d1d373 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -365,7 +365,6 @@ static inline void slave_write(struct cpsw_slave *slave, u32 val, u32 offset) } struct cpsw_priv { - spinlock_t lock; struct platform_device *pdev; struct net_device *ndev; struct napi_struct napi_rx; @@ -2413,7 +2412,6 @@ static int cpsw_probe_dual_emac(struct platform_device *pdev, } priv_sl2 = netdev_priv(ndev); - spin_lock_init(&priv_sl2->lock); priv_sl2->data = *data; priv_sl2->pdev = pdev; priv_sl2->ndev = ndev; @@ -2533,7 +2531,6 @@ static int cpsw_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ndev); priv = netdev_priv(ndev); - spin_lock_init(&priv->lock); priv->pdev = pdev; priv->ndev = ndev; priv->dev = &ndev->dev;