summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorKarim Eshapa <karim.eshapa@gmail.com>2017-05-09 00:34:10 +0200
committerKalle Valo <kvalo@codeaurora.org>2017-05-24 16:39:41 +0300
commitc07036f18d93a0703a18a9a9a658d830110a10d8 (patch)
tree60ef39b094399b7f0dd5b2ecf94ce68a68922681 /drivers/net/wireless
parent5578b1ffdc3091dd0ae164b056fd1224fb00f1e9 (diff)
rsi: rsi_91x_core: Use time_after time comparison
Use time_after kernel macro for time comparison. Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/rsi/rsi_91x_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rsi/rsi_91x_core.c b/drivers/net/wireless/rsi/rsi_91x_core.c
index f3d3995d8f6b..68f04a76769e 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();
}
}