Skip to contentSkip to conversation

net: dsa: dsa_loop: remove duplicated definition of NUM_FIXED_PHYS

PATCH Applied Heiner Kallweit 4 participants 4 messages Sep 18, 2025 – Sep 19, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: dsa: dsa_loop: remove duplicated definition of NUM_FIXED_PHYS

Remove duplicated definition of NUM_FIXED_PHYS. This was a leftover from 41357bc7b94b ("net: dsa: dsa_loop: remove usage of mdio_board_info").

---
 drivers/net/dsa/dsa_loop.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/dsa/dsa_loop.c +0 -2
index 57b54f15f..31798e8bd 100644
@@ -396,8 +396,6 @@ static struct mdio_driver dsa_loop_drv = {
 	.shutdown = dsa_loop_drv_shutdown,
 };
 
-#define NUM_FIXED_PHYS	(DSA_LOOP_NUM_PORTS - 2)
-
 static void dsa_loop_phydevs_unregister(void)
 {
 	for (int i = 0; i < NUM_FIXED_PHYS; i++) {
Signature · 1 line
2.51.0
#3 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 7 lines · On Thu, 18 Sep 2025 07:54:00 +0200 you wrote:

Remove duplicated definition of NUM_FIXED_PHYS. This was a leftover from 41357bc7b94b ("net: dsa: dsa_loop: remove usage of mdio_board_info").

---
 drivers/net/dsa/dsa_loop.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- [net-next] net: dsa: dsa_loop: remove duplicated definition of NUM_FIXED_PHYS

    https://git.kernel.org/netdev/net-next/c/a346e48c1792

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html