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>
This commit is contained in:
Manuel Schölling 2014-05-22 19:52:45 +02:00 коммит произвёл David S. Miller
Родитель 87f03cc3c6
Коммит 05e1e76e0f
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4930,7 +4930,7 @@ static void netdev_tx_timeout(struct net_device *dev)
* Only reset the hardware if time between calls is long * Only reset the hardware if time between calls is long
* enough. * enough.
*/ */
if (jiffies - last_reset <= dev->watchdog_timeo) if (time_before_eq(jiffies, last_reset + dev->watchdog_timeo))
hw_priv = NULL; hw_priv = NULL;
} }