Skip to contentSkip to conversation

ethernet: micrel: use time_after_eq

PATCH Applied Antonio Murdaca 3 participants 3 messages Jun 2, 2015 – Jun 4, 2015 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ethernet: micrel: use time_after_eq

use the time_after_eq macro for jiffies comparison operation

---
 drivers/net/ethernet/micrel/ksz884x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/micrel/ksz884x.c +1 -1
index 6f332eb..48d2aec 100644
@@ -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;
Signature · 1 line
2.4.2

A message that is not in the archive (sent off-list or not yet received): CAA7r0fox5CR8u=uQgUD0EojodksrjFRvOsvsJXtQKJZfd3V8dg@mail.gmail.com

#2 lore raw
Quoted 2 lines · Antonio Murdaca

Did I make some mistakes with this patch? Seeking help|info since this is one my very first contribution to the kernel..

Please be patient and wait for the review process
to take place.

It can take weeks before you get a reply.