projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00d0f31
)
net: phy: dp83867: Remove unnecessary (void*) conversions
author
wuych
<yunchuan@nfschina.com>
Mon, 24 Apr 2023 10:15:50 +0000
(18:15 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 25 Apr 2023 01:11:50 +0000
(18:11 -0700)
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>
drivers/net/phy/dp83867.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/dp83867.c
b/drivers/net/phy/dp83867.c
index
5821f04
..
4376fc2
100644
(file)
--- 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,