forked from Minki/linux
ethernet: micrel: use time_is_before_eq_jiffies
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>
This commit is contained in:
parent
34270f5f6f
commit
addae62e73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user