Commit f6b59f36 authored by Antonio Murdaca's avatar Antonio Murdaca Committed by David S. Miller

ethernet: micrel: use time_after_eq

use the time_after_eq macro for jiffies comparison operation
Signed-off-by: default avatarAntonio Murdaca <antonio.murdaca@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent db9777e3
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment