diff options
author | Manuel Schölling <manuel.schoelling@gmx.de> | 2014-05-22 19:52:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-22 15:50:12 -0400 |
commit | 05e1e76e0f736cba6094425ba20a3eea6dc23b99 (patch) | |
tree | ff4e050cc68a06981378d0605c0a7237c49eee58 /drivers | |
parent | 87f03cc3c67d4a6b5c35119e339bab640600effb (diff) | |
download | linux-05e1e76e0f736cba6094425ba20a3eea6dc23b99.tar.bz2 |
micrel: Use time_before_eq()
To be future-proof and for better readability the time comparisons are modified
to use time_before_eq() instead of plain, error-prone math.
Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-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 c3898d3deffb..064a48d0c368 100644 --- a/drivers/net/ethernet/micrel/ksz884x.c +++ b/drivers/net/ethernet/micrel/ksz884x.c @@ -4930,7 +4930,7 @@ static void netdev_tx_timeout(struct net_device *dev) * Only reset the hardware if time between calls is long * enough. */ - if (jiffies - last_reset <= dev->watchdog_timeo) + if (time_before_eq(jiffies, last_reset + dev->watchdog_timeo)) hw_priv = NULL; } |