From 77b99ea3c658b2bc60f80e13b3ed32afc4c31ad7 Mon Sep 17 00:00:00 2001 From: Chuanhong Guo Date: Mon, 13 Apr 2020 11:49:16 +0800 Subject: [PATCH] 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 --- .../patches-5.4/990-NET-no-auto-carrier-off-support.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.2