r8169: remove not needed net_ratelimit() check
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 3 Sep 2022 11:15:13 +0000 (13:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Sep 2022 13:49:59 +0000 (14:49 +0100)
We're not in a hot path and don't want to miss this message,
therefore remove the net_ratelimit() check.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c

index f174831..5a48f66 100644 (file)
@@ -4567,8 +4567,7 @@ static void r8169_phylink_handler(struct net_device *ndev)
                pm_runtime_idle(&tp->pci_dev->dev);
        }
 
-       if (net_ratelimit())
-               phy_print_status(tp->phydev);
+       phy_print_status(tp->phydev);
 }
 
 static int r8169_phy_connect(struct rtl8169_private *tp)