From patchwork Sat Aug 6 10:48:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 9265973 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 A3BAB6075A for ; Sat, 6 Aug 2016 20:10:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9461A27F88 for ; Sat, 6 Aug 2016 20:10:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8935928412; Sat, 6 Aug 2016 20:10:46 +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 0D22B283EF for ; Sat, 6 Aug 2016 20:10:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751534AbcHFUKb (ORCPT ); Sat, 6 Aug 2016 16:10:31 -0400 Received: from mail-lf0-f49.google.com ([209.85.215.49]:33023 "EHLO mail-lf0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751010AbcHFUK2 (ORCPT ); Sat, 6 Aug 2016 16:10:28 -0400 Received: by mail-lf0-f49.google.com with SMTP id b199so224357292lfe.0 for ; Sat, 06 Aug 2016 13:10:27 -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:in-reply-to:references; bh=dQn5VKnjTyrxEftdOupEOye6EOEwehM1potxkC2Gc5Q=; b=K/IAu2f+Vvvu7hPta0lLcmoZ1GN6ROV1hhQ1nhom0n4uSr32UThDLmpTE7aw/K+Hb9 iB7rZN7nt2ALpGFEws3QYq/F8ZjbC6e3mE1WBzqDipk3oApJBuubvRqzvpe22wWTzobF MoCl8imFmNph/Psv/DNo2Ti2Z3ShZ0ileSW/k= 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=dQn5VKnjTyrxEftdOupEOye6EOEwehM1potxkC2Gc5Q=; b=Msu/m/8EWdhczPIUJomg5qwJHmNoMzKomepotpBg+FPQRhbeVqMlqNkSacW6FGxQBK mVHeLTTi7hE+VSAqihT/mE9xsDhlEHx5m4Kbyl+XWgeBW6pW0QsAippBRWh4A6AGvbPI kCpAa8Ycy42uDoFQ6tuPsVKrWCNgEuzVGKa69qHidwuW6VjQoiQ1oe8mXBWHZGMDZ3m5 LEbEo52WaiXsLErszdv4S3UrqO05SDhIq3OLiFFC8eVbYN2ZGTZElLm8B6dogDSqCbTw u6E5W7a9aTq2CfU+MHL4+9SkbOTtcENi2ZQfic2K4yVbyWG41mILjdApLZAn/H7r4SoG 6GcQ== X-Gm-Message-State: AEkooutnm+i1Aswh5mdYiNR+Iicr0wP+7C3ulk8xkzsNfOE7AO2Z7h/CzPoB/KUf7m1WLoDN X-Received: by 10.25.156.77 with SMTP id f74mr28898778lfe.51.1470480541586; Sat, 06 Aug 2016 03:49:01 -0700 (PDT) Received: from localhost.localdomain (153-224-132-95.pool.ukrtel.net. [95.132.224.153]) by smtp.gmail.com with ESMTPSA id p128sm3916360lfb.32.2016.08.06.03.49.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 06 Aug 2016 03:49:01 -0700 (PDT) From: Ivan Khoronzhuk To: netdev@vger.kernel.org, mugunthanvnm@ti.com, grygorii.strashko@ti.com Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, dlide@ti.com, Ivan Khoronzhuk Subject: [PATCH v2 03/14] net: ethernet: ti: cpsw: remove priv from cpsw_get_slave_port() parameters list Date: Sat, 6 Aug 2016 13:48:33 +0300 Message-Id: <1470480524-6851-4-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470480524-6851-1-git-send-email-ivan.khoronzhuk@linaro.org> References: <1470480524-6851-1-git-send-email-ivan.khoronzhuk@linaro.org> 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 need in priv here. Signed-off-by: Ivan Khoronzhuk Reviewed-by: Mugunthan V N Reviewed-by: Grygorii Strashko --- drivers/net/ethernet/ti/cpsw.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 85ee9f5..30e1ddb 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -525,7 +525,7 @@ static const struct cpsw_stats cpsw_gstrings_stats[] = { if (priv->data.dual_emac) { \ struct cpsw_slave *slave = priv->slaves + \ priv->emac_port; \ - int slave_port = cpsw_get_slave_port(priv, \ + int slave_port = cpsw_get_slave_port( \ slave->slave_num); \ cpsw_ale_add_mcast(priv->ale, addr, \ 1 << slave_port | ALE_PORT_HOST, \ @@ -537,7 +537,7 @@ static const struct cpsw_stats cpsw_gstrings_stats[] = { } \ } while (0) -static inline int cpsw_get_slave_port(struct cpsw_priv *priv, u32 slave_num) +static inline int cpsw_get_slave_port(u32 slave_num) { return slave_num + 1; } @@ -849,7 +849,7 @@ static void _cpsw_adjust_link(struct cpsw_slave *slave, if (!phy) return; - slave_port = cpsw_get_slave_port(priv, slave->slave_num); + slave_port = cpsw_get_slave_port(slave->slave_num); if (phy->link) { mac_control = priv->data.mac_control; @@ -1120,7 +1120,7 @@ static void cpsw_slave_open(struct cpsw_slave *slave, struct cpsw_priv *priv) slave->mac_control = 0; /* no link yet */ - slave_port = cpsw_get_slave_port(priv, slave->slave_num); + slave_port = cpsw_get_slave_port(slave->slave_num); if (priv->data.dual_emac) cpsw_add_dual_emac_def_ale_entries(priv, slave, slave_port); @@ -1222,7 +1222,7 @@ static void cpsw_slave_stop(struct cpsw_slave *slave, struct cpsw_priv *priv) { u32 slave_port; - slave_port = cpsw_get_slave_port(priv, slave->slave_num); + slave_port = cpsw_get_slave_port(slave->slave_num); if (!slave->phy) return;