From patchwork Tue May 28 11:48:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King (Oracle)" X-Patchwork-Id: 13676544 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0C5EC25B78 for ; Tue, 28 May 2024 11:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Date:Message-Id:MIME-Version:Subject:Cc :To:From:References:In-Reply-To:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2vmMNroPSDQgEOUPt+KuJbmuiKLKI87Q4mGzvMJhNgc=; b=lQ5H/2vUeaSZxD MgkL08SiqiY8Q3DUsRFafGwQ980+PY6+Bh+BIU2zl+qxDwLQKtGzGi0BK9LXDxYsuPSYHqzOgbr7h BKdSzkdlc6gm75HtpSR/GiAi0B9mqZcIHIt9BmeB/8axwrFosaWKhoKkXOnHuE6kK+QohjDSXTfu2 7mm8N914+pkzMwvUfH4UTXVJBM2iZX0iiHdsH/ibzlR7vVZojflp6LSOgfaqCUpTkJKcK15OraTWo 4iAqsqM1fhgi1s0G+Y47tvAYprf7yfZx7QrjnP6iqQ8z2NxsHxqhBJhq36UKdvURSOH/WNaEHAWbW OzlM7Mt0MHpFFhctNfJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvK5-00000000RDl-3PRB; Tue, 28 May 2024 11:48:57 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBvK1-00000000RAX-0J0D for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 11:48:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Date:Sender:Message-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:Subject:Cc:To:From:References: In-Reply-To:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=PdDmheRx/IAskSw7udGezvoVreMh9IRlnmdlh/WJhyA=; b=RwlvUw34vs9QLo5ywcZBv2jGLk Y5K9KsCO+UPSyDdYS7QsRjqOg2tZEWF8j/mDxnDdDQD7f79f+NRNm+2L0DiWAUqyPVJpUFeughYJd UqfJmExLDVok747cwEIj8xxO5SEysmeErWAMwUsAstDdBmzM4VaxIu6VYpLjM6MUsinyI2lJ7oE42 bipN85MlfAC+jztfL1T5EAFPnefhfpM/0BlVxD3SVPJKTGpF9rSpL9UuY/ufWGhyo4jofpNdPLsqx Sr5QZD8nr8DBp/rH0mSI5pCUGBDxbZV6lXyQ82INS+flbcRXh5M383xTBK6h4hOoNTN4sQeQdB8pt z4Xu78cA==; Received: from e0022681537dd.dyn.armlinux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:46306 helo=rmk-PC.armlinux.org.uk) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sBvJo-0004hu-0e; Tue, 28 May 2024 12:48:40 +0100 Received: from rmk by rmk-PC.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1sBvJq-00EHyW-TO; Tue, 28 May 2024 12:48:42 +0100 In-Reply-To: References: From: "Russell King (Oracle)" To: Serge Semin Cc: Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next 2/5] net: stmmac: dwxgmac2: remove useless NULL pointer initialisations MIME-Version: 1.0 Content-Disposition: inline Message-Id: Date: Tue, 28 May 2024 12:48:42 +0100 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_044853_190425_C34CF504 X-CRM114-Status: UNSURE ( 7.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove useless NULL pointer initialisations for "PCS" methods from the dwxgmac2 code. Signed-off-by: Russell King (Oracle) Reviewed-by: Andrew Halaney --- drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c index f8e7775bb633..6a987cf598e4 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c @@ -1554,9 +1554,6 @@ const struct stmmac_ops dwxgmac210_ops = { .reset_eee_mode = dwxgmac2_reset_eee_mode, .set_eee_timer = dwxgmac2_set_eee_timer, .set_eee_pls = dwxgmac2_set_eee_pls, - .pcs_ctrl_ane = NULL, - .pcs_rane = NULL, - .pcs_get_adv_lp = NULL, .debug = NULL, .set_filter = dwxgmac2_set_filter, .safety_feat_config = dwxgmac3_safety_feat_config, @@ -1614,9 +1611,6 @@ const struct stmmac_ops dwxlgmac2_ops = { .reset_eee_mode = dwxgmac2_reset_eee_mode, .set_eee_timer = dwxgmac2_set_eee_timer, .set_eee_pls = dwxgmac2_set_eee_pls, - .pcs_ctrl_ane = NULL, - .pcs_rane = NULL, - .pcs_get_adv_lp = NULL, .debug = NULL, .set_filter = dwxgmac2_set_filter, .safety_feat_config = dwxgmac3_safety_feat_config,