Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;