From: Chuanhong Guo Date: Mon, 13 Apr 2020 03:49:16 +0000 (+0800) Subject: ramips: fix whitespace in 990_NET-no-auto-carrier-support.patch X-Git-Tag: v21.02.0-rc1~3100 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7;p=openwrt%2Fstaging%2Fhauke.git ramips: fix whitespace in 990_NET-no-auto-carrier-support.patch Fixes: 6fcba5eec3 ("ramips: port 0034-NET-multi-phy-support.patch to 5.4") Signed-off-by: Chuanhong Guo --- diff --git a/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch index c15be64377..a31d1ac3a6 100644 --- a/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch +++ b/target/linux/ramips/patches-5.4/990-NET-no-auto-carrier-off-support.patch @@ -16,10 +16,10 @@ Signed-off-by: John Crispin } 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;