From b1483a69d6f8c50a6c67aa507c0124fed6a609bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Wed, 4 Jun 2025 18:12:09 +0200 Subject: [PATCH] drivers: ethernet: phy_mii: correct indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit correct indentation Signed-off-by: Fin Maaß --- drivers/ethernet/phy/phy_mii.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/ethernet/phy/phy_mii.c b/drivers/ethernet/phy/phy_mii.c index d803e2544f3..3f107a83f7a 100644 --- a/drivers/ethernet/phy/phy_mii.c +++ b/drivers/ethernet/phy/phy_mii.c @@ -221,17 +221,17 @@ static int check_autonegotiation_completion(const struct device *dev) uint16_t c1kt_reg = 0; uint16_t s1kt_reg = 0; - /* On some PHY chips, the BMSR bits are latched, so the first read may - * show incorrect status. A second read ensures correct values. - */ - if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { - return -EIO; - } + /* On some PHY chips, the BMSR bits are latched, so the first read may + * show incorrect status. A second read ensures correct values. + */ + if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { + return -EIO; + } - /* Second read, clears the latched bits and gives the correct status */ - if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { - return -EIO; - } + /* Second read, clears the latched bits and gives the correct status */ + if (phy_mii_reg_read(dev, MII_BMSR, &bmsr_reg) < 0) { + return -EIO; + } if (!(bmsr_reg & MII_BMSR_AUTONEG_COMPLETE)) { if (data->autoneg_timeout-- == 0U) {