From: Antonio Murdaca <antoniomurdaca@gmail.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
joe@perches.com, julia.lawall@lip6.fr, akpm@linux-foundation.org,
Antonio Murdaca <antonio.murdaca@gmail.com>
Subject: [PATCH] ethernet: micrel: use time_after_eq
Date: Tue, 2 Jun 2015 14:35:52 +0200 [thread overview]
Message-ID: <1433248552-7994-1-git-send-email-antonio.murdaca@gmail.com> (raw)
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(-)
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;
--
2.4.2
next reply other threads:[~2015-06-02 12:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-02 12:35 Antonio Murdaca [this message]
[not found] ` <CAA7r0fox5CR8u=uQgUD0EojodksrjFRvOsvsJXtQKJZfd3V8dg@mail.gmail.com>
2015-06-03 16:40 ` [PATCH] ethernet: micrel: use time_after_eq Joe Perches
2015-06-04 2:39 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1433248552-7994-1-git-send-email-antonio.murdaca@gmail.com \
--to=antoniomurdaca@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=antonio.murdaca@gmail.com \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=julia.lawall@lip6.fr \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).