summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Murdaca <antoniomurdaca@gmail.com>2015-06-05 18:58:38 +0200
committerDavid S. Miller <davem@davemloft.net>2015-06-07 19:22:49 -0700
commitaddae62e73cc7c2b0277d5069649be5594f0a5c8 (patch)
treef80f9128a4b914f9dd51d77de7d68ead0c167601
parent34270f5f6f1bcc2dc9d2e5aa28147667425cc424 (diff)
downloadlinux-stable-addae62e73cc7c2b0277d5069649be5594f0a5c8.tar.gz
linux-stable-addae62e73cc7c2b0277d5069649be5594f0a5c8.tar.bz2
linux-stable-addae62e73cc7c2b0277d5069649be5594f0a5c8.zip
ethernet: micrel: use time_is_before_eq_jiffies
use time_is_before_eq_jiffies macro for time comparison Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/micrel/ksz884x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 48d2aecb0da9..75dc46c5fca2 100644
--- a/drivers/net/ethernet/micrel/ksz884x.c
+++ b/drivers/net/ethernet/micrel/ksz884x.c
@@ -6689,7 +6689,7 @@ static void mib_monitor(unsigned long ptr)
/* This is used to verify Wake-on-LAN is working. */
if (hw_priv->pme_wait) {
- if (hw_priv->pme_wait <= jiffies) {
+ if (time_is_before_eq_jiffies(hw_priv->pme_wait)) {
hw_clr_wol_pme_status(&hw_priv->hw);
hw_priv->pme_wait = 0;
}