Skip to content

Commit

Permalink
net: dsa: microchip: ksz9477: remove unused "on" variable
Browse files Browse the repository at this point in the history
This variable is not used on ksz9477 side. Remove it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Oleksij Rempel authored and David S. Miller committed Aug 31, 2022
1 parent 6aaa8e7 commit 7d39143
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/dsa/microchip/ksz9477.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,6 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds)

/* enable cpu port */
ksz9477_port_setup(dev, i, true);
p->on = 1;
}
}

Expand All @@ -1079,7 +1078,6 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds)
p = &dev->ports[i];

ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED);
p->on = 1;
if (dev->chip_id == 0x00947700 && i == 6) {
p->sgmii = 1;
}
Expand Down

0 comments on commit 7d39143

Please sign in to comment.