From patchwork Mon Nov 7 08:56:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raju Lakkaraju - I30499 X-Patchwork-Id: 13034106 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 73253C4332F for ; Mon, 7 Nov 2022 08:57:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231400AbiKGI5P (ORCPT ); Mon, 7 Nov 2022 03:57:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231518AbiKGI5K (ORCPT ); Mon, 7 Nov 2022 03:57:10 -0500 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 701C515836; Mon, 7 Nov 2022 00:57:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1667811426; x=1699347426; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=b04ZHSDXDlEVTBVuOPBDEtMi6B7HphF2Zh1z2L5q7Es=; b=R1mXRyuNhvCtzyJWpTLj95ILVzHuB/BMaisar4c3M5TqF2l2qnZLmKPf bKeyaRguTRbzKxT5Wq9D+rpaaD7K8e8t+IX/SOalTM1gJ3raWSjjEhEDD D8+OyJLXmsY5V2yvqym5spioLFEzKy1n80BCTFc5DGddNsftB4wHMLwKq 8TjPPvDOOZ5BodQ+PFdq8asKsxT3GrfkiY5KOl2PbvVR59MlyqFFYZolC 2wxh9rBgZJ5/+wOiCU8EXRA2azHxhPkhT9JhZ6eyyghOC60r3pXt8+IcZ NbqVQF5SlCmF7Xgbx5HSaUisuKi2xNvyqajxwx5YbvOPpJFDPGpR7n4Dq g==; X-IronPort-AV: E=Sophos;i="5.96,143,1665471600"; d="scan'208";a="198684710" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Nov 2022 01:57:04 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Mon, 7 Nov 2022 01:57:01 -0700 Received: from localhost.localdomain (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Mon, 7 Nov 2022 01:56:57 -0700 From: Raju Lakkaraju To: CC: , , , , , , , , , , Subject: [PATCH net-next V7 1/2] net: lan743x: Remove unused argument in lan743x_common_regs( ) Date: Mon, 7 Nov 2022 14:26:49 +0530 Message-ID: <20221107085650.991470-2-Raju.Lakkaraju@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221107085650.991470-1-Raju.Lakkaraju@microchip.com> References: <20221107085650.991470-1-Raju.Lakkaraju@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Remove the unused argument (i.e. struct ethtool_regs *regs) in lan743x_common_regs( ) function arguments. Signed-off-by: Raju Lakkaraju --- Change List: =========== V6 -> V7: - Revert the memset change in lan743x_common_regs( ) function drivers/net/ethernet/microchip/lan743x_ethtool.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/microchip/lan743x_ethtool.c b/drivers/net/ethernet/microchip/lan743x_ethtool.c index 88f9484cc2a7..aa1d79a9a1f2 100644 --- a/drivers/net/ethernet/microchip/lan743x_ethtool.c +++ b/drivers/net/ethernet/microchip/lan743x_ethtool.c @@ -1190,9 +1190,7 @@ static int lan743x_ethtool_set_wol(struct net_device *netdev, } #endif /* CONFIG_PM */ -static void lan743x_common_regs(struct net_device *dev, - struct ethtool_regs *regs, void *p) - +static void lan743x_common_regs(struct net_device *dev, void *p) { struct lan743x_adapter *adapter = netdev_priv(dev); u32 *rb = p; @@ -1230,7 +1228,7 @@ static void lan743x_get_regs(struct net_device *dev, { regs->version = LAN743X_ETH_REG_VERSION; - lan743x_common_regs(dev, regs, p); + lan743x_common_regs(dev, p); } static void lan743x_get_pauseparam(struct net_device *dev,