Skip to content

Commit 44a696d

Browse files
Russell King (Oracle)davem330
authored andcommitted
net: mdio: xgene: remove useless xgene_mdio_status
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>
1 parent f65f305 commit 44a696d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/mdio/mdio-xgene.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include <linux/prefetch.h>
2121
#include <net/ip.h>
2222

23-
static bool xgene_mdio_status;
24-
2523
u32 xgene_mdio_rd_mac(struct xgene_mdio_pdata *pdata, u32 rd_addr)
2624
{
2725
void __iomem *addr, *rd, *cmd, *cmd_done;
@@ -421,7 +419,6 @@ static int xgene_mdio_probe(struct platform_device *pdev)
421419
goto out_mdiobus;
422420

423421
pdata->mdio_bus = mdio_bus;
424-
xgene_mdio_status = true;
425422

426423
return 0;
427424

0 commit comments

Comments
 (0)