projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db9777e
)
ethernet: micrel: use time_after_eq
author
Antonio Murdaca
<antoniomurdaca@gmail.com>
Tue, 2 Jun 2015 12:35:52 +0000
(14:35 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 4 Jun 2015 02:38:46 +0000
(19:38 -0700)
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>
drivers/net/ethernet/micrel/ksz884x.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/micrel/ksz884x.c
b/drivers/net/ethernet/micrel/ksz884x.c
index 6f332ebdf3b5a812dd34be59a072e497af380975..48d2aecb0da9d1394b42ecf7615495a52aa849ed 100644
(file)
--- 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;