aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.h
diff options
context:
space:
mode:
authorManuel Schölling <manuel.schoelling@gmx.de>2014-05-25 13:59:36 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-05-29 13:08:11 -0400
commit55fdb8585d84bc9f895086ea3c15ef02630e1143 (patch)
tree527c5ce7a171f94d9a398cda864e7347ae07dc2d /drivers/net/wireless/mwifiex/main.h
parent347f8fdb610db9cf20959e4eaf3544c30dd6eab1 (diff)
mwifiex: use time_after()
To be future-proof and for better readability the time comparisons are modified to use time_after() instead of plain, error-prone math. Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de> Acked-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.h')
-rw-r--r--drivers/net/wireless/mwifiex/main.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h
index 3f25feb1508e..1398afa84064 100644
--- a/drivers/net/wireless/mwifiex/main.h
+++ b/drivers/net/wireless/mwifiex/main.h
@@ -1099,7 +1099,7 @@ mwifiex_11h_get_csa_closed_channel(struct mwifiex_private *priv)
1099 return 0; 1099 return 0;
1100 1100
1101 /* Clear csa channel, if DFS channel move time has passed */ 1101 /* Clear csa channel, if DFS channel move time has passed */
1102 if (jiffies > priv->csa_expire_time) { 1102 if (time_after(jiffies, priv->csa_expire_time)) {
1103 priv->csa_chan = 0; 1103 priv->csa_chan = 0;
1104 priv->csa_expire_time = 0; 1104 priv->csa_expire_time = 0;
1105 } 1105 }