summaryrefslogtreecommitdiff
path: root/drivers/net/phy/marvell-88x2222.c
diff options
context:
space:
mode:
authorwuych <yunchuan@nfschina.com>2023-04-25 13:15:32 +0800
committerDavid S. Miller <davem@davemloft.net>2023-04-25 09:43:50 +0100
commit28b17f6270f182e22cdad5a0fdc4979031e4486a (patch)
tree3e79e655d1225786aabb4c3506cf821dfbc6cb9d /drivers/net/phy/marvell-88x2222.c
parent4774ad841bef97cc51df90195338c5b2573dd4cb (diff)
net: phy: marvell-88x2222: remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast. Signed-off-by: wuych <yunchuan@nfschina.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/marvell-88x2222.c')
-rw-r--r--drivers/net/phy/marvell-88x2222.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/marvell-88x2222.c b/drivers/net/phy/marvell-88x2222.c
index fd9ad4820192..f83cae64585d 100644
--- a/drivers/net/phy/marvell-88x2222.c
+++ b/drivers/net/phy/marvell-88x2222.c
@@ -487,7 +487,7 @@ static int mv2222_sfp_insert(void *upstream, const struct sfp_eeprom_id *id)
__ETHTOOL_DECLARE_LINK_MODE_MASK(sfp_supported) = { 0, };
- priv = (struct mv2222_data *)phydev->priv;
+ priv = phydev->priv;
dev = &phydev->mdio.dev;
sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces);
@@ -524,7 +524,7 @@ static void mv2222_sfp_remove(void *upstream)
struct phy_device *phydev = upstream;
struct mv2222_data *priv;
- priv = (struct mv2222_data *)phydev->priv;
+ priv = phydev->priv;
priv->line_interface = PHY_INTERFACE_MODE_NA;
linkmode_zero(priv->supported);