Skip to content

Commit 86c2b51

Browse files
wuychkuba-moo
authored andcommitted
net: phy: dp83867: Remove unnecessary (void*) conversions
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>
1 parent 00d0f31 commit 86c2b51

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/net/phy/dp83867.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ static int dp83867_set_tunable(struct phy_device *phydev,
468468

469469
static int dp83867_config_port_mirroring(struct phy_device *phydev)
470470
{
471-
struct dp83867_private *dp83867 =
472-
(struct dp83867_private *)phydev->priv;
471+
struct dp83867_private *dp83867 = phydev->priv;
473472

474473
if (dp83867->port_mirroring == DP83867_PORT_MIRROING_EN)
475474
phy_set_bits_mmd(phydev, DP83867_DEVADDR, DP83867_CFG4,

0 commit comments

Comments
 (0)