Skip to content

Commit

Permalink
r8169: remove not needed net_ratelimit() check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Heiner Kallweit authored and David S. Miller committed Sep 5, 2022
1 parent 710d21f commit 96efd6d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/realtek/r8169_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 96efd6d

Please sign in to comment.