mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue