Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c19e2f2 authored by Karim Eshapa's avatar Karim Eshapa Committed by David S. Miller
Browse files

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: default avatarKarim Eshapa <karim.eshapa@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f92ceb01
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {