diff options
author | Karim Eshapa <karim.eshapa@gmail.com> | 2017-05-09 03:06:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-09 16:40:33 +0300 |
commit | 4c19e2f2a86f2281014c1e06785715ad9864c9cc (patch) | |
tree | 679b4631e92733c262513f2eb57b3f137976094e /drivers/net/wimax | |
parent | f92ceb01c2cad7092af89c32dde5b14d4fdf8a09 (diff) | |
download | linux-4c19e2f2a86f2281014c1e06785715ad9864c9cc.tar.xz |
drivers: net: wimax: i2400m: i2400m-usb: Use time_after for time comparison
Use time_after() for time comparison with the new fix.
Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r-- | drivers/net/wimax/i2400m/i2400m-usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wimax/i2400m/i2400m-usb.h b/drivers/net/wimax/i2400m/i2400m-usb.h index 649ecad6844c..eff4f464a23e 100644 --- a/drivers/net/wimax/i2400m/i2400m-usb.h +++ b/drivers/net/wimax/i2400m/i2400m-usb.h @@ -131,7 +131,7 @@ static inline int edc_inc(struct edc *edc, u16 max_err, u16 timeframe) unsigned long now; now = jiffies; - if (now - edc->timestart > timeframe) { + if (time_after(now, edc->timestart + timeframe)) { edc->errorcount = 1; edc->timestart = now; } else if (++edc->errorcount > max_err) { |