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 <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 00d0f31 commit 86c2b51

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)