ramips: fix whitespace in 990_NET-no-auto-carrier-support.patch
authorChuanhong Guo <gch981213@gmail.com>
Mon, 13 Apr 2020 03:49:16 +0000 (11:49 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Mon, 13 Apr 2020 03:49:16 +0000 (11:49 +0800)
Fixes: 6fcba5eec3 ("ramips: port 0034-NET-multi-phy-support.patch to 5.4")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch

index c15be643775dd4f0861ca08b8ef091a804100733..a31d1ac3a6ca3db784ab66e29a3db3cb05b8b006 100644 (file)
@@ -16,10 +16,10 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
        } else if (!phydev->link && phydev->state != PHY_NOLINK) {
                phydev->state = PHY_NOLINK;
 -              phy_link_down(phydev, true);
-+                      if (!phydev->no_auto_carrier_off)
-+                              phy_link_down(phydev, true);
-+                      else
-+                              phy_link_down(phydev, false);
++              if (!phydev->no_auto_carrier_off)
++                      phy_link_down(phydev, true);
++              else
++                      phy_link_down(phydev, false);
        }
  
        return 0;