]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: phy: marvell-88x2222: remove unnecessary (void*) conversions
authorwuych <yunchuan@nfschina.com>
Tue, 25 Apr 2023 05:15:32 +0000 (13:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Apr 2023 08:43:50 +0000 (09:43 +0100)
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>
drivers/net/phy/marvell-88x2222.c

index fd9ad482019242f37f1136842b516a22d0aa6054..f83cae64585d598cc8e6f30aa6f0b3cbb0567df3 100644 (file)
@@ -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);