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: 9151217 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 54CAC60467 for ; Thu, 2 Jun 2016 22:37:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48AD22832E for ; Thu, 2 Jun 2016 22:37:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3D6A328330; Thu, 2 Jun 2016 22:37:49 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 C6A7E2832E for ; Thu, 2 Jun 2016 22:37:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932973AbcFBWhX (ORCPT ); Thu, 2 Jun 2016 18:37:23 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:32913 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932914AbcFBWhW (ORCPT ); Thu, 2 Jun 2016 18:37:22 -0400 Received: by mail-lf0-f46.google.com with SMTP id s64so43414065lfe.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=l2Sk3Y3Vw5FZI5+4qxk+oMQYym3V0QbaIX9wd/r2WbOYDUwQkf0tWu72MWqFjkvE9b ny/yKGK5fuGbFjK1I183i0NGr+k97Hg8zkADP/VDpEi383aYs5YxhWK7QnU95s0UyYrh rO7SW20MVGqkahHJuF9crmwWRXdpv/J/Jf497/OESmYafktT+ro0PJlrzC0HMl9LjYJB 14N6AkBURXRAidxj5x/xGVruTbdIbQRbCo3/WInLqtYdLhUR1Wof5rZ1M7oN1yNzcvru 9LYDLxcWF/rxktPsfnarAdEL/zzvwzyLu+ghMmLVR+aL4JqMTF9OdIBJQ3xNYGJ4x4+C /jlw== X-Gm-Message-State: ALyK8tLkmOSrU/uYhSdNd8rPELZ82uuYsQY8pDyMqD/kYx1E7YcyTuYB6PGfZ3GdU8rHLymv 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP There is no reason in this lock. At least for now. Signed-off-by: Ivan Khoronzhuk Reviewed-by: Grygorii Strashko --- Based on master drivers/net/ethernet/ti/cpsw.c | 3 --- 1 file changed, 3 deletions(-) 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;