From 09c9de11289f5f594ab106ada2cc74bca866d778 Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Sun, 29 Mar 2026 19:47:28 +0200 Subject: [PATCH] realtek: dsa: drop port_mask from instance structure The port_mask attribute is set but never used. Drop it. Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/22438 Signed-off-by: Hauke Mehrtens --- .../linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c | 4 ---- .../realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h | 1 - 2 files changed, 5 deletions(-) diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c index 7ec188d58c..aae7261f68 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/common.c @@ -1610,7 +1610,6 @@ static int rtl83xx_sw_probe(struct platform_device *pdev) case RTL8380_FAMILY_ID: priv->ds->ops = &rtldsa_83xx_switch_ops; priv->ds->phylink_mac_ops = &rtldsa_83xx_phylink_mac_ops; - priv->port_mask = 0x1f; priv->port_width = 1; priv->fib_entries = 8192; priv->ds->num_lag_ids = 8; @@ -1620,7 +1619,6 @@ static int rtl83xx_sw_probe(struct platform_device *pdev) case RTL8390_FAMILY_ID: priv->ds->ops = &rtldsa_83xx_switch_ops; priv->ds->phylink_mac_ops = &rtldsa_83xx_phylink_mac_ops; - priv->port_mask = 0x3f; priv->port_width = 2; priv->fib_entries = 16384; priv->ds->num_lag_ids = 16; @@ -1630,7 +1628,6 @@ static int rtl83xx_sw_probe(struct platform_device *pdev) case RTL9300_FAMILY_ID: priv->ds->ops = &rtldsa_93xx_switch_ops; priv->ds->phylink_mac_ops = &rtldsa_93xx_phylink_mac_ops; - priv->port_mask = 0x1f; priv->port_width = 1; priv->fib_entries = 16384; priv->ds->num_lag_ids = 16; @@ -1641,7 +1638,6 @@ static int rtl83xx_sw_probe(struct platform_device *pdev) case RTL9310_FAMILY_ID: priv->ds->ops = &rtldsa_93xx_switch_ops; priv->ds->phylink_mac_ops = &rtldsa_93xx_phylink_mac_ops; - priv->port_mask = 0x3f; priv->port_width = 2; priv->fib_entries = 16384; priv->ds->num_lag_ids = 16; diff --git a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h index ac4100d602..fdf8418700 100644 --- a/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h +++ b/target/linux/realtek/files-6.18/drivers/net/dsa/rtl83xx/rtl838x.h @@ -1516,7 +1516,6 @@ struct rtl838x_switch_priv { int mirror_group_ports[4]; struct mii_bus *parent_bus; const struct rtldsa_config *r; - u8 port_mask; u8 port_width; u64 irq_mask; u32 fib_entries;