Skip to content

Commit

Permalink
net: mdio: xgene: remove useless xgene_mdio_status
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Russell King (Oracle) authored and davem330 committed Aug 19, 2023
1 parent f65f305 commit 44a696d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/mdio/mdio-xgene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 44a696d

Please sign in to comment.