All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status
@ 2023-08-18 11:33 Russell King (Oracle)
  2023-08-19 14:06 ` Simon Horman
  2023-08-19 18:34 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Russell King (Oracle) @ 2023-08-18 11:33 UTC (permalink / raw)
  To: Iyappan Subramanian, Keyur Chudgar, Quan Nguyen
  Cc: Andrew Lunn, Heiner Kallweit, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev

xgene_mdio_status is declared static, and is only written once by the
driver. It appears to have been this way since the driver was first
added to the kernel tree. No other users can be found, so let's remove
it.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
---
 drivers/net/mdio/mdio-xgene.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c
index 1af7a4d9f86c..1190a793555a 100644
--- a/drivers/net/mdio/mdio-xgene.c
+++ b/drivers/net/mdio/mdio-xgene.c
@@ -20,8 +20,6 @@
 #include <linux/prefetch.h>
 #include <net/ip.h>
 
-static bool xgene_mdio_status;
-
 u32 xgene_mdio_rd_mac(struct xgene_mdio_pdata *pdata, u32 rd_addr)
 {
 	void __iomem *addr, *rd, *cmd, *cmd_done;
@@ -421,7 +419,6 @@ static int xgene_mdio_probe(struct platform_device *pdev)
 		goto out_mdiobus;
 
 	pdata->mdio_bus = mdio_bus;
-	xgene_mdio_status = true;
 
 	return 0;
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status
  2023-08-18 11:33 [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status Russell King (Oracle)
@ 2023-08-19 14:06 ` Simon Horman
  2023-08-19 18:34 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2023-08-19 14:06 UTC (permalink / raw)
  To: Russell King (Oracle)
  Cc: Iyappan Subramanian, Keyur Chudgar, Quan Nguyen, Andrew Lunn,
	Heiner Kallweit, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, netdev

On Fri, Aug 18, 2023 at 12:33:24PM +0100, Russell King (Oracle) wrote:
> xgene_mdio_status is declared static, and is only written once by the
> driver. It appears to have been this way since the driver was first
> added to the kernel tree. No other users can be found, so let's remove
> it.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

Reviewed-by: Simon Horman <horms@kernel.org>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status
  2023-08-18 11:33 [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status Russell King (Oracle)
  2023-08-19 14:06 ` Simon Horman
@ 2023-08-19 18:34 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-08-19 18:34 UTC (permalink / raw)
  To: Russell King
  Cc: iyappan, keyur, quan, andrew, hkallweit1, davem, edumazet, kuba,
	pabeni, netdev

Hello:

This patch was applied to netdev/net-next.git (main)
by David S. Miller <davem@davemloft.net>:

On Fri, 18 Aug 2023 12:33:24 +0100 you wrote:
> xgene_mdio_status is declared static, and is only written once by the
> driver. It appears to have been this way since the driver was first
> added to the kernel tree. No other users can be found, so let's remove
> it.
> 
> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> 
> [...]

Here is the summary with links:
  - [net-next] net: mdio: xgene: remove useless xgene_mdio_status
    https://git.kernel.org/netdev/net-next/c/44a696de720d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-08-19 18:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 11:33 [PATCH net-next] net: mdio: xgene: remove useless xgene_mdio_status Russell King (Oracle)
2023-08-19 14:06 ` Simon Horman
2023-08-19 18:34 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.