Skip to content

Commit d527fc3

Browse files
T-Xrobimarko
authored andcommitted
realtek: remove currently unused VLAN profile_id 1
So far we are only associating and using a VLAN profile ID of 0 to any VLAN ID, VLAN profile ID 1 is unused. Therefore we can safely remove its initialization, just like we don't initialize any of VLAN profile IDs 2 to 7 on rtl83xx/rtl930x or 2 to 15 on rtl931x. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue> Link: openwrt/openwrt#21872 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent a0e11f6 commit d527fc3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx

target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ static void rtldsa_vlan_setup(struct rtl838x_switch_priv *priv)
463463
pr_info("In %s\n", __func__);
464464

465465
priv->r->vlan_profile_setup(0);
466-
priv->r->vlan_profile_setup(1);
467466
priv->r->vlan_profile_dump(priv, 0);
468467

469468
info.fid = 0; /* Default Forwarding ID / MSTI */

0 commit comments

Comments
 (0)