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:
34270f5
)
ethernet: micrel: use time_is_before_eq_jiffies
author
Antonio Murdaca
<antoniomurdaca@gmail.com>
Fri, 5 Jun 2015 16:58:38 +0000
(18:58 +0200)
committer
David S. Miller
<davem@davemloft.net>
Mon, 8 Jun 2015 02:22:49 +0000
(19:22 -0700)
use time_is_before_eq_jiffies macro for time comparison
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 48d2aecb0da9d1394b42ecf7615495a52aa849ed..75dc46c5fca29229b5734110526137fc2c9786cb 100644
(file)
--- a/
drivers/net/ethernet/micrel/ksz884x.c
+++ b/
drivers/net/ethernet/micrel/ksz884x.c
@@
-6689,7
+6689,7
@@
static void mib_monitor(unsigned long ptr)
/* This is used to verify Wake-on-LAN is working. */
if (hw_priv->pme_wait) {
- if (
hw_priv->pme_wait <= jiffies
) {
+ if (
time_is_before_eq_jiffies(hw_priv->pme_wait)
) {
hw_clr_wol_pme_status(&hw_priv->hw);
hw_priv->pme_wait = 0;
}