net: dsa: microchip: remove unused private members
Private structure members live_ports, on_ports, rx_ports, tx_ports are initialized but not used anywhere. Let's remove them. Suggested-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
143a102e30
commit
b20a6b29a8
@@ -84,10 +84,6 @@ struct ksz_device {
|
||||
unsigned long mib_read_interval;
|
||||
u16 br_member;
|
||||
u16 member;
|
||||
u16 live_ports;
|
||||
u16 on_ports; /* ports enabled by DSA */
|
||||
u16 rx_ports;
|
||||
u16 tx_ports;
|
||||
u16 mirror_rx;
|
||||
u16 mirror_tx;
|
||||
u32 features; /* chip specific features */
|
||||
@@ -161,9 +157,6 @@ int ksz_phy_read16(struct dsa_switch *ds, int addr, int reg);
|
||||
int ksz_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val);
|
||||
void ksz_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode,
|
||||
phy_interface_t interface);
|
||||
void ksz_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode,
|
||||
phy_interface_t interface, struct phy_device *phydev,
|
||||
int speed, int duplex, bool tx_pause, bool rx_pause);
|
||||
int ksz_sset_count(struct dsa_switch *ds, int port, int sset);
|
||||
void ksz_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *buf);
|
||||
int ksz_port_bridge_join(struct dsa_switch *ds, int port,
|
||||
@@ -182,7 +175,6 @@ void ksz_port_mdb_add(struct dsa_switch *ds, int port,
|
||||
int ksz_port_mdb_del(struct dsa_switch *ds, int port,
|
||||
const struct switchdev_obj_port_mdb *mdb);
|
||||
int ksz_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy);
|
||||
void ksz_disable_port(struct dsa_switch *ds, int port);
|
||||
|
||||
/* Common register access functions */
|
||||
|
||||
|
Reference in New Issue
Block a user