* [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions
@ 2023-04-24 10:15 wuych
2023-04-24 11:14 ` Leon Romanovsky
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: wuych @ 2023-04-24 10:15 UTC (permalink / raw)
To: andrew, hkallweit1, davem, edumazet, kuba, pabeni
Cc: linux, netdev, linux-kernel, kernel-janitors, wuych
Pointer variables of void * type do not require type cast.
Signed-off-by: wuych <yunchuan@nfschina.com>
---
drivers/net/phy/dp83867.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c
index 89cd821f1f46..03b2ef1bf3dc 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,
--
2.30.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions
2023-04-24 10:15 [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions wuych
@ 2023-04-24 11:14 ` Leon Romanovsky
2023-04-24 11:57 ` Andrew Lunn
2023-04-25 1:20 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Leon Romanovsky @ 2023-04-24 11:14 UTC (permalink / raw)
To: wuych
Cc: andrew, hkallweit1, davem, edumazet, kuba, pabeni, linux, netdev,
linux-kernel, kernel-janitors
On Mon, Apr 24, 2023 at 06:15:50PM +0800, wuych wrote:
> Pointer variables of void * type do not require type cast.
>
> Signed-off-by: wuych <yunchuan@nfschina.com>
> ---
> drivers/net/phy/dp83867.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions
2023-04-24 10:15 [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions wuych
2023-04-24 11:14 ` Leon Romanovsky
@ 2023-04-24 11:57 ` Andrew Lunn
2023-04-25 1:20 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2023-04-24 11:57 UTC (permalink / raw)
To: wuych
Cc: hkallweit1, davem, edumazet, kuba, pabeni, linux, netdev,
linux-kernel, kernel-janitors
On Mon, Apr 24, 2023 at 06:15:50PM +0800, wuych wrote:
> Pointer variables of void * type do not require type cast.
>
> Signed-off-by: wuych <yunchuan@nfschina.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Andrew
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions
2023-04-24 10:15 [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions wuych
2023-04-24 11:14 ` Leon Romanovsky
2023-04-24 11:57 ` Andrew Lunn
@ 2023-04-25 1:20 ` patchwork-bot+netdevbpf
2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-04-25 1:20 UTC (permalink / raw)
To: wuych
Cc: andrew, hkallweit1, davem, edumazet, kuba, pabeni, linux, netdev,
linux-kernel, kernel-janitors
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 24 Apr 2023 18:15:50 +0800 you wrote:
> Pointer variables of void * type do not require type cast.
>
> Signed-off-by: wuych <yunchuan@nfschina.com>
> ---
> drivers/net/phy/dp83867.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Here is the summary with links:
- net: phy: dp83867: Remove unnecessary (void*) conversions
https://git.kernel.org/netdev/net-next/c/86c2b51f203e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-25 1:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-24 10:15 [PATCH] net: phy: dp83867: Remove unnecessary (void*) conversions wuych
2023-04-24 11:14 ` Leon Romanovsky
2023-04-24 11:57 ` Andrew Lunn
2023-04-25 1:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).