[U-Boot] [PATCH v2 5/8] net: mscc: Remove unused variables

Horatiu Vultur horatiu.vultur at microchip.com
Wed Jan 30 12:29:38 UTC 2019


Remove unused variables in the struct ocelot_private.

Signed-off-by: Horatiu Vultur <horatiu.vultur at microchip.com>
---
 drivers/net/mscc_eswitch/ocelot_switch.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c
index 40152e6..6546b4f 100644
--- a/drivers/net/mscc_eswitch/ocelot_switch.c
+++ b/drivers/net/mscc_eswitch/ocelot_switch.c
@@ -123,19 +123,7 @@ enum ocelot_phy_id {
 
 struct ocelot_private {
 	void __iomem *regs[TARGET_MAX];
-
 	struct mii_dev *bus[NUM_PHY];
-	struct phy_device *phydev;
-	int phy_mode;
-	int max_speed;
-
-	int rx_pos;
-	int rx_siz;
-	int rx_off;
-	int tx_num;
-
-	u8 tx_adj_packetbuf[PKTSIZE_ALIGN + PKTALIGN];
-	void *tx_adj_buf;
 };
 
 static const unsigned long ocelot_regs_qs[] = {
-- 
2.7.4



More information about the U-Boot mailing list