From patchwork Thu Apr 6 12:54:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 13203285 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5D23C7618D for ; Thu, 6 Apr 2023 12:54:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238092AbjDFMyh (ORCPT ); Thu, 6 Apr 2023 08:54:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237928AbjDFMyg (ORCPT ); Thu, 6 Apr 2023 08:54:36 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2060d.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::60d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 965704C21 for ; Thu, 6 Apr 2023 05:54:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S0iK6/Pa18XanQqYQhIwyI+EtY4Ka5TO72yhPTxYj+HtcaU8cs8hxrBuDNn7EIL8BKzOn910IdNIOzHmtmOaQ+FcyT5u/EMCLmy5ix7hC+s98QUrvs6sCgckXBY/bEnK710wthj1pUH9w+iLbaDFV1lEHnw7YARZOg56CBkRHlg9S7D74GbKdnsNkpltt66hZzKK2TftNWvV5fosePKvWIRfwdPWRkdZ6boAHdRkGAb+avO3t8O3flmw4nY5w83KBlHlzmiWdEcun6PNJB2wU/bQHiS4dTVQk7MllQQZ4f4h6qKP+i3dhQtT2wEIlAmUkTmVwoPc1qW+RRTDEaNotQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lnggLfUK1aetOJPiArlmCxjfN1eTCYhSJDWulsNRPd4=; b=oF4OgFiRztjeNxXMGW0dxm+UV8C/0UoP1mkdN48FpYTjpTRNZ5siVf8tejh4eSKKtbSvvo3Ja8M4Jp4mUiZV72ZfEbVDpZv6SSsyIqFpqdJyuaYR6jd6yLtVXw8E7jHz8vTtlWgXowvqNuTrLGdUA/4WNmhS+bGiF+i3RjI+xCM2WZ3JFBMCHfVyiiuyC4f7kS+3BkXbhbFUj8jH9SZsWODX3Jf4lhIwAcuhc7cgMBNQnwtQ8mhRETo3UJ5jIoLAvPPfFWJ8rlFBu/RioJhPz2Fh2vLDwM1ZubyKYek8ZysiER5BzPS0/noJqq+//hDHob7tJoTTQHEQjj+0JuPG2Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lnggLfUK1aetOJPiArlmCxjfN1eTCYhSJDWulsNRPd4=; b=C2m22m91dk/gs0EwsHmxT6JLm+LCLNJuz9WxKOud3/M70KmQRCOXFyjzs7PoUDjDVjx3MazZ4I1v0TXFXkk6O2yV49Faml7GAw9w0R8uNvxNpGuvY9w6+F5Fj4jkR4xOPa3nNJe3ln0K4w8p4kWwKgw7RIWsg8nK1X20mjEyLAU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from DB8PR04MB6459.eurprd04.prod.outlook.com (2603:10a6:10:103::19) by AS8PR04MB8500.eurprd04.prod.outlook.com (2603:10a6:20b:343::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.30; Thu, 6 Apr 2023 12:54:30 +0000 Received: from DB8PR04MB6459.eurprd04.prod.outlook.com ([fe80::e555:cc9e:b278:15d9]) by DB8PR04MB6459.eurprd04.prod.outlook.com ([fe80::e555:cc9e:b278:15d9%7]) with mapi id 15.20.6254.035; Thu, 6 Apr 2023 12:54:30 +0000 From: Vladimir Oltean To: netdev@vger.kernel.org, Jakub Kicinski Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Andrew Lunn , Florian Fainelli , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Heiner Kallweit , Russell King , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next] net: stmmac: remove set but unused mask in stmmac_ethtool_set_link_ksettings() Date: Thu, 6 Apr 2023 15:54:12 +0300 Message-Id: <20230406125412.48790-1-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: FR2P281CA0099.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:9c::9) To DB8PR04MB6459.eurprd04.prod.outlook.com (2603:10a6:10:103::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB8PR04MB6459:EE_|AS8PR04MB8500:EE_ X-MS-Office365-Filtering-Correlation-Id: 1f028e5a-4050-4703-7338-08db369e1010 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8TXPyG+KigxHwN+zh0ewbf5ds0vjpVjD46eUDcl2SsRWbCS0TuOMnlyx+TQIy2bUFfNV092TVZ6dw9fiGn6L+zxx/V39lTv8qeRQAb8+dg9Wj5G6toOFAqzVTmVnjLNxssHxdFd0oR+vr5kIfMmOR+Ceh8XnPfQjFse9Pjx+pAHr3ViNTrG/TuuDX4zq5ppJw4HrstngbOiD+HKY+vGPmJ1uiNwyaZWb4NS/sUcK2858HdEAZOm6Be4fKe4F5p7PwRglpkSDvH7fKA44Zoh3k49Ib6OXZHxphUhN5U2aX7CzeTa3Ath1UE7KU4x83wtvYGE7R8nU2MW/WDgMDCiX3lWBtg1juTf+QU/waRlKxDdr0eW008OfUBSi2KKNyMBU4drr+o5hDZt+n6u16ycLtEzCmI2I5DkCB5PARk2CoLnlsZsK5AanfSW5mJkBQz/YQMTzq5HWL2IaBhyzMJxrn7HCHDI2xD0xIXuj5v0oSg0bmMYsShtNrKtyooDER3hDrPxKyVqcN45auPxC2OWjnlKGaVtDx3+tYTvfjSn4KO0lmP4SQfK9nbmlXIDIbDRW728tEOMt9FrikwAH8BJFbbg0oH6T0V1OjTT5SpOB04ZjWtaRINDpEQItrO7cGDMz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR04MB6459.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(396003)(366004)(136003)(346002)(451199021)(38100700002)(86362001)(36756003)(38350700002)(54906003)(6486002)(52116002)(478600001)(2616005)(186003)(6512007)(26005)(6506007)(1076003)(41300700001)(66476007)(66556008)(66946007)(5660300002)(316002)(4326008)(6916009)(7416002)(8936002)(83380400001)(6666004)(2906002)(44832011)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: PmKE66k0oYnlRd3Nlci7YDjfvzh73vpX2lNUwD/2rluwKlO1F+y5pfIFNyyKi201bRlPERdMQ2o6MX6tZySBYvrFovTLZTdnbVGzCnoi3CdA/G4h0CSoGMMh+y9wuWzyJZ9Pmq7VhCpOV1yRjWjoQtgmR20nr1etK2WqLmorUsZx5wRGzW7Uhu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VXLA5m9LIb4jfJHX/q63K//11neHwB/++85WYjGV4Z2hFscISK19mzagnwfRS0kXo/e28jdQL5wIXLYIJHZefuF9mkLLQ0iaHcz+yfr99L99KoHVo2cewhnEEDKfDRCQfKvN4M2TNHvJ2DbftbOMzPV5eRiJcgmQnPaRItes/fRj59n+pNRT4r/SC/9NM13DAix0z4NHQP2X60c2AuDIOopLfk5J3eX5uArM8pDQ2TaLtRDok+/OfOVviGf2U8E1eQhNwhPN3oMtx6KDIJucSbYiCDk1+fCEZvUSnw9aboDDTTKfnnaO1fTXMItCRbTO6fsoQXx52SWcM1NW7GYH76Nr2vZprsAH2GCg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1f028e5a-4050-4703-7338-08db369e1010 X-MS-Exchange-CrossTenant-AuthSource: DB8PR04MB6459.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2023 12:54:30.7783 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HX8fKBsKhsX+daNVG9a8B6ftuI4wy885h01mbwhgvIlvNjllc9bjaoOzDCpU2lBl/lHls5fDHOvorfyVRoDI7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8500 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This was never used since the commit that added it - e58bb43f5e43 ("stmmac: initial support to manage pcs modes"). Signed-off-by: Vladimir Oltean Reviewed-by: Simon Horman --- drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c index 35c8dd92d369..2ae73ab842d4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_ethtool.c @@ -393,19 +393,10 @@ stmmac_ethtool_set_link_ksettings(struct net_device *dev, if (priv->hw->pcs & STMMAC_PCS_RGMII || priv->hw->pcs & STMMAC_PCS_SGMII) { - u32 mask = ADVERTISED_Autoneg | ADVERTISED_Pause; - /* Only support ANE */ if (cmd->base.autoneg != AUTONEG_ENABLE) return -EINVAL; - mask &= (ADVERTISED_1000baseT_Half | - ADVERTISED_1000baseT_Full | - ADVERTISED_100baseT_Half | - ADVERTISED_100baseT_Full | - ADVERTISED_10baseT_Half | - ADVERTISED_10baseT_Full); - mutex_lock(&priv->lock); stmmac_pcs_ctrl_ane(priv, priv->ioaddr, 1, priv->hw->ps, 0); mutex_unlock(&priv->lock);