ethernet: micrel: use time_after_eq
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>
This commit is contained in:
parent
db9777e376
commit
f6b59f36b4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue