OSDN Git Service
(root)
/
android-x86
/
kernel.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
48d2aec
..
75dc46c
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;
}