Skip to content

Commit 28b17f6

Browse files
wuychdavem330
authored andcommitted
net: phy: marvell-88x2222: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: wuych <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 4774ad8 commit 28b17f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/phy/marvell-88x2222.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ static int mv2222_sfp_insert(void *upstream, const struct sfp_eeprom_id *id)
487487

488488
__ETHTOOL_DECLARE_LINK_MODE_MASK(sfp_supported) = { 0, };
489489

490-
priv = (struct mv2222_data *)phydev->priv;
490+
priv = phydev->priv;
491491
dev = &phydev->mdio.dev;
492492

493493
sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces);
@@ -524,7 +524,7 @@ static void mv2222_sfp_remove(void *upstream)
524524
struct phy_device *phydev = upstream;
525525
struct mv2222_data *priv;
526526

527-
priv = (struct mv2222_data *)phydev->priv;
527+
priv = phydev->priv;
528528

529529
priv->line_interface = PHY_INTERFACE_MODE_NA;
530530
linkmode_zero(priv->supported);

0 commit comments

Comments
 (0)