rsi: rsi_91x_core: Use time_after time comparison
authorKarim Eshapa <karim.eshapa@gmail.com>
Mon, 8 May 2017 22:34:10 +0000 (00:34 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 May 2017 13:39:41 +0000 (16:39 +0300)
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>
drivers/net/wireless/rsi/rsi_91x_core.c

index f3d3995d8f6b4c8ada23a5f25c6ad8035b108970..68f04a76769e246270ac7d88657d9f4ad97da45b 100644 (file)
@@ -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();
        }
 }