diff mbox

ethernet: micrel: use time_is_before_eq_jiffies

Message ID 1433523518-5992-1-git-send-email-antonio.murdaca@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Antonio Murdaca June 5, 2015, 4:58 p.m. UTC
use time_is_before_eq_jiffies macro for time comparison

Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com>
---
 drivers/net/ethernet/micrel/ksz884x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller June 8, 2015, 2:23 a.m. UTC | #1
From: Antonio Murdaca <antoniomurdaca@gmail.com>
Date: Fri,  5 Jun 2015 18:58:38 +0200

> use time_is_before_eq_jiffies macro for time comparison
> 
> Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 48d2aec..75dc46c 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;
 		}