提交 e7f69521 编写于 作者: O Oleksij Rempel 提交者: David S. Miller

net: dsa: microchip: remove unused sgmii variable

This variable is not used. So, remove it.
Signed-off-by: NOleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: NVladimir Oltean <olteanv@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7d391434
...@@ -1075,12 +1075,7 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds) ...@@ -1075,12 +1075,7 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds)
for (i = 0; i < dev->info->port_cnt; i++) { for (i = 0; i < dev->info->port_cnt; i++) {
if (i == dev->cpu_port) if (i == dev->cpu_port)
continue; continue;
p = &dev->ports[i];
ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED); ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED);
if (dev->chip_id == 0x00947700 && i == 6) {
p->sgmii = 1;
}
} }
} }
......
...@@ -74,7 +74,6 @@ struct ksz_port { ...@@ -74,7 +74,6 @@ struct ksz_port {
u32 on:1; /* port is not disabled by hardware */ u32 on:1; /* port is not disabled by hardware */
u32 fiber:1; /* port is fiber */ u32 fiber:1; /* port is fiber */
u32 sgmii:1; /* port is SGMII */
u32 force:1; u32 force:1;
u32 read:1; /* read MIB counters in background */ u32 read:1; /* read MIB counters in background */
u32 freeze:1; /* MIB counter freeze is enabled */ u32 freeze:1; /* MIB counter freeze is enabled */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册