Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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").

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Link: https://patch.msgid.link/67a3b7df-c967-4431-86b6-a836dc46a4ef@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
a346e48c 833d4313

-2
-2
drivers/net/dsa/dsa_loop.c
··· 395 395 .shutdown = dsa_loop_drv_shutdown, 396 396 }; 397 397 398 - #define NUM_FIXED_PHYS (DSA_LOOP_NUM_PORTS - 2) 399 - 400 398 static void dsa_loop_phydevs_unregister(void) 401 399 { 402 400 for (int i = 0; i < NUM_FIXED_PHYS; i++) {