ethernet: micrel: use time_is_before_eq_jiffies
authorAntonio Murdaca <antoniomurdaca@gmail.com>
Fri, 5 Jun 2015 16:58:38 +0000 (18:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2015 02:22:49 +0000 (19:22 -0700)
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>
drivers/net/ethernet/micrel/ksz884x.c

index 48d2aecb0da9d1394b42ecf7615495a52aa849ed..75dc46c5fca29229b5734110526137fc2c9786cb 100644 (file)
@@ -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;
                }