diff options
author | Antonio Murdaca <antoniomurdaca@gmail.com> | 2015-06-02 14:35:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-06-04 04:38:46 +0200 |
commit | f6b59f36b463ffdd82fc804f2772194eb8abd030 (patch) | |
tree | 31b9cf3ebc86c2551c8d18a8648f196217c8f85b /drivers/net/ethernet/micrel | |
parent | net/mlx4_core: Fix build failure introduced by the EQ pool changes (diff) | |
download | linux-f6b59f36b463ffdd82fc804f2772194eb8abd030.tar.xz linux-f6b59f36b463ffdd82fc804f2772194eb8abd030.zip |
ethernet: micrel: use time_after_eq
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>
Diffstat (limited to 'drivers/net/ethernet/micrel')
-rw-r--r-- | drivers/net/ethernet/micrel/ksz884x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ksz884x.c b/drivers/net/ethernet/micrel/ksz884x.c index 6f332ebdf3b5..48d2aecb0da9 100644 --- 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; |