Thread (2 messages) 2 messages, 2 authors, 2017-05-24
STALE3305d

[PATCH] drivers: net: wireless: rsi: rsi_91x_core: Use time_after time comparison

From: Karim Eshapa <hidden>
Date: 2017-05-08 22:34:32
Also in: linux-wireless, lkml
Subsystem: redpine wireless driver, the rest · Maintainer: Linus Torvalds

Use time_after kernel macro for time comparison.

Signed-off-by: Karim Eshapa <redacted>
---
 drivers/net/wireless/rsi/rsi_91x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/rsi/rsi_91x_core.c b/drivers/net/wireless/rsi/rsi_91x_core.c
index f3d3995..68f04a7 100644
--- a/drivers/net/wireless/rsi/rsi_91x_core.c
+++ b/drivers/net/wireless/rsi/rsi_91x_core.c
@@ -306,7 +306,7 @@ void rsi_core_qos_processor(struct rsi_common *common)
 		tstamp_2 = jiffies;
 		mutex_unlock(&common->tx_rxlock);
 
-		if (tstamp_2 > tstamp_1 + (300 * HZ / 1000))
+		if (time_after(tstamp_2, tstamp_1 + (300 * HZ) / 1000))
 			schedule();
 	}
 }
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help