diff mbox

ethernet: micrel: use time_after_eq

Message ID 1433248552-7994-1-git-send-email-antonio.murdaca@gmail.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Antonio Murdaca June 2, 2015, 12:35 p.m. UTC
use the time_after_eq macro for jiffies comparison operation

Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com>
---
 drivers/net/ethernet/micrel/ksz884x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joe Perches June 3, 2015, 4:40 p.m. UTC | #1
On Wed, 2015-06-03 at 15:40 +0200, Antonio Murdaca wrote:
> 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.


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller June 4, 2015, 2:39 a.m. UTC | #2
From: Antonio Murdaca <antoniomurdaca@gmail.com>
Date: Tue,  2 Jun 2015 14:35:52 +0200

> use the time_after_eq macro for jiffies comparison operation
> 
> Signed-off-by: Antonio Murdaca <antonio.murdaca@gmail.com>

Applied to net-next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c
index 6f332eb..48d2aec 100644
--- a/drivers/net/ethernet/micrel/ksz884x.c
+++ b/drivers/net/ethernet/micrel/ksz884x.c
@@ -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;