Skip to content

Commit

Permalink
net: mdio: Remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wu Yunchuan authored and Jakub Kicinski committed Jul 19, 2023
1 parent 099090c commit 04115de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/mdio/mdio-xgene.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;

Expand Down

0 comments on commit 04115de

Please sign in to comment.