Skip to content

Commit

Permalink
net: phy: dp83867: 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>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230424101550.664319-1-yunchuan@nfschina.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
wuych authored and Jakub Kicinski committed Apr 25, 2023
1 parent 00d0f31 commit 86c2b51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/phy/dp83867.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,7 @@ static int dp83867_set_tunable(struct phy_device *phydev,

static int dp83867_config_port_mirroring(struct phy_device *phydev)
{
struct dp83867_private *dp83867 =
(struct dp83867_private *)phydev->priv;
struct dp83867_private *dp83867 = phydev->priv;

if (dp83867->port_mirroring == DP83867_PORT_MIRROING_EN)
phy_set_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,
Expand Down

0 comments on commit 86c2b51

Please sign in to comment.