Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os 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>

authored by

Antonio Murdaca and committed by
David S. Miller
addae62e 34270f5f

+1 -1
+1 -1
drivers/net/ethernet/micrel/ksz884x.c
··· 6689 6689 6690 6690 /* This is used to verify Wake-on-LAN is working. */ 6691 6691 if (hw_priv->pme_wait) { 6692 - if (hw_priv->pme_wait <= jiffies) { 6692 + if (time_is_before_eq_jiffies(hw_priv->pme_wait)) { 6693 6693 hw_clr_wol_pme_status(&hw_priv->hw); 6694 6694 hw_priv->pme_wait = 0; 6695 6695 }