diff options
author | Karim Eshapa <karim.eshapa@gmail.com> | 2017-05-09 02:06:50 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-09 09:40:33 -0400 |
commit | 4c19e2f2a86f2281014c1e06785715ad9864c9cc (patch) | |
tree | 679b4631e92733c262513f2eb57b3f137976094e /drivers/net/wimax/i2400m | |
parent | f92ceb01c2cad7092af89c32dde5b14d4fdf8a09 (diff) | |
download | op-kernel-dev-4c19e2f2a86f2281014c1e06785715ad9864c9cc.zip op-kernel-dev-4c19e2f2a86f2281014c1e06785715ad9864c9cc.tar.gz |
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/i2400m')
-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 649ecad..eff4f464 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) { |