Skip to content

Commit

Permalink
net: phy: marvell-88x2222: remove unnecessary (void*) conversions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
wuych authored and David S. Miller committed Apr 25, 2023
1 parent 4774ad8 commit 28b17f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/phy/marvell-88x2222.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 28b17f6

Please sign in to comment.