summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwuych <yunchuan@nfschina.com>2023-04-24 12:15:50 +0200
committerJakub Kicinski <kuba@kernel.org>2023-04-25 03:11:50 +0200
commit86c2b51f203ec89adc18492a46343472055fd3c8 (patch)
tree26ab522c6ebb3ca53aa8b8cf859e97b9741f4330
parentnet: ethtool: coalesce: try to make user settings stick twice (diff)
downloadlinux-86c2b51f203ec89adc18492a46343472055fd3c8.tar.xz
linux-86c2b51f203ec89adc18492a46343472055fd3c8.zip
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>
-rw-r--r--drivers/net/phy/dp83867.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index 5821f04c69dc..4376fc2aa22c 100644
--- a/drivers/net/phy/dp83867.c
+++ b/drivers/net/phy/dp83867.c
@@ -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,