ethernet: micrel: use time_after_eq
authorAntonio Murdaca <antoniomurdaca@gmail.com>
Tue, 2 Jun 2015 12:35:52 +0000 (14:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Jun 2015 02:38:46 +0000 (19:38 -0700)
use the time_after_eq macro for jiffies comparison operation

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 6f332ebdf3b5a812dd34be59a072e497af380975..48d2aecb0da9d1394b42ecf7615495a52aa849ed 100644 (file)
@@ -6664,7 +6664,7 @@ static void mib_read_work(struct work_struct *work)
                                wake_up_interruptible(
                                        &hw_priv->counter[i].counter);
                        }
-               } else if (jiffies >= hw_priv->counter[i].time) {
+               } else if (time_after_eq(jiffies, hw_priv->counter[i].time)) {
                        /* Only read MIB counters when the port is connected. */
                        if (media_connected == mib->state)
                                hw_priv->counter[i].read = 1;