summaryrefslogtreecommitdiffstats
path: root/drivers/net/mdio
diff options
context:
space:
mode:
authorWu Yunchuan <yunchuan@nfschina.com>2023-07-17 11:12:12 +0800
committerJakub Kicinski <kuba@kernel.org>2023-07-18 19:00:47 -0700
commit04115debedce8a14f4e293b5493ed7379a0d3cf8 (patch)
tree90ce723db238d35f25b123508e9864e07b46c285 /drivers/net/mdio
parent099090c6effc6b28b30c680b33903559bcaff6d0 (diff)
downloadlinux-stable-04115debedce8a14f4e293b5493ed7379a0d3cf8.tar.gz
linux-stable-04115debedce8a14f4e293b5493ed7379a0d3cf8.tar.bz2
linux-stable-04115debedce8a14f4e293b5493ed7379a0d3cf8.zip
net: mdio: Remove unnecessary (void*) conversions
No need cast (void*) to (struct xgene_mdio_pdata *). Signed-off-by: Wu Yunchuan <yunchuan@nfschina.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20230717031212.54991-1-yunchuan@nfschina.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/mdio')
-rw-r--r--drivers/net/mdio/mdio-xgene.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/mdio/mdio-xgene.c b/drivers/net/mdio/mdio-xgene.c
index 7aafc221b5cf..683e8f8319ab 100644
--- a/drivers/net/mdio/mdio-xgene.c
+++ b/drivers/net/mdio/mdio-xgene.c
@@ -79,7 +79,7 @@ EXPORT_SYMBOL(xgene_mdio_wr_mac);
int xgene_mdio_rgmii_read(struct mii_bus *bus, int phy_id, int reg)
{
- struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv;
+ struct xgene_mdio_pdata *pdata = bus->priv;
u32 data, done;
u8 wait = 10;
@@ -105,7 +105,7 @@ EXPORT_SYMBOL(xgene_mdio_rgmii_read);
int xgene_mdio_rgmii_write(struct mii_bus *bus, int phy_id, int reg, u16 data)
{
- struct xgene_mdio_pdata *pdata = (struct xgene_mdio_pdata *)bus->priv;
+ struct xgene_mdio_pdata *pdata = bus->priv;
u32 val, done;
u8 wait = 10;