net: dsa: microchip: remove unused port phy variable
authorOleksij Rempel <o.rempel@pengutronix.de>
Fri, 26 Aug 2022 10:56:31 +0000 (12:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Aug 2022 08:41:23 +0000 (09:41 +0100)
This variable is unused. So, drop 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>
drivers/net/dsa/microchip/ksz8795.c
drivers/net/dsa/microchip/ksz9477.c
drivers/net/dsa/microchip/ksz_common.h

index f020d9f4028452a4af2738e1ad177cd8de1ab900..bd3b133e7085b8aea692c288f79ccaf39bdd44dd 100644 (file)
@@ -1251,7 +1251,6 @@ void ksz8_config_cpu_port(struct dsa_switch *ds)
                if (i == dev->phy_port_cnt)
                        break;
                p->on = 1;
-               p->phy = 1;
        }
        for (i = 0; i < dev->phy_port_cnt; i++) {
                p = &dev->ports[i];
index d1ee6b4b4954264898425e01e178171affe1c602..4a2074a12b3f75b56c05cca019e47511ac77027a 100644 (file)
@@ -1080,13 +1080,8 @@ void ksz9477_config_cpu_port(struct dsa_switch *ds)
 
                ksz_port_stp_state_set(ds, i, BR_STATE_DISABLED);
                p->on = 1;
-               if (dev->info->internal_phy[i])
-                       p->phy = 1;
                if (dev->chip_id == 0x00947700 && i == 6) {
                        p->sgmii = 1;
-
-                       /* SGMII PHY detection code is not implemented yet. */
-                       p->phy = 0;
                }
        }
 }
index 4491cedd32c32da143832f1fe67e66588481e962..99da2092d0d7d96b60a8da57b568e29301998d56 100644 (file)
@@ -73,7 +73,6 @@ struct ksz_port {
        struct phy_device phydev;
 
        u32 on:1;                       /* port is not disabled by hardware */
-       u32 phy:1;                      /* port has a PHY */
        u32 fiber:1;                    /* port is fiber */
        u32 sgmii:1;                    /* port is SGMII */
        u32 force:1;