]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - drivers/net/ethernet/mscc/ocelot_board.c
net: mscc: ocelot: remove set but not used variable 'phy_mode'
[mirror_ubuntu-eoan-kernel.git] / drivers / net / ethernet / mscc / ocelot_board.c
index 953b326773833fa9dfc8d4510a10817dcb62b9a8..0cf0b0935b3b00bc4ac5e5cf0dd218723ca63f06 100644 (file)
@@ -259,7 +259,6 @@ static int mscc_ocelot_probe(struct platform_device *pdev)
                struct phy_device *phy;
                struct resource *res;
                struct phy *serdes;
-               enum phy_mode phy_mode;
                void __iomem *regs;
                char res_name[8];
                u32 port;
@@ -297,10 +296,8 @@ static int mscc_ocelot_probe(struct platform_device *pdev)
                case PHY_INTERFACE_MODE_NA:
                        continue;
                case PHY_INTERFACE_MODE_SGMII:
-                       phy_mode = PHY_MODE_SGMII;
                        break;
                case PHY_INTERFACE_MODE_QSGMII:
-                       phy_mode = PHY_MODE_QSGMII;
                        break;
                default:
                        dev_err(ocelot->dev,