diff mbox

drivers: net: wireless: rsi: rsi_91x_core: Use time_after time comparison

Message ID 1494282850-13782-1-git-send-email-karim.eshapa@gmail.com (mailing list archive)
State Accepted
Commit c07036f18d93a0703a18a9a9a658d830110a10d8
Delegated to: Kalle Valo
Headers show

Commit Message

Karim Eshapa May 8, 2017, 10:34 p.m. UTC
Use time_after kernel macro for time comparison.

Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>
---
 drivers/net/wireless/rsi/rsi_91x_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Kalle Valo May 24, 2017, 1:40 p.m. UTC | #1
Karim Eshapa <karim.eshapa@gmail.com> wrote:
> Use time_after kernel macro for time comparison.
> 
> Signed-off-by: Karim Eshapa <karim.eshapa@gmail.com>

Patch applied to wireless-drivers-next.git, thanks.

c07036f18d93 rsi: rsi_91x_core: Use time_after time comparison
diff mbox

Patch

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();
 	}
 }