From: Manuel Schölling Date: Sun, 25 May 2014 17:59:36 +0000 (+0200) Subject: mwifiex: use time_after() X-Git-Tag: v4.14-rc1~7158^2~11^2~7^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=55fdb8585d84bc9f895086ea3c15ef02630e1143;p=platform%2Fkernel%2Flinux-rpi.git 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 Acked-by: Bing Zhao Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mwifiex/main.h b/drivers/net/wireless/mwifiex/main.h index 3f25feb..1398afa 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) return 0; /* Clear csa channel, if DFS channel move time has passed */ - if (jiffies > priv->csa_expire_time) { + if (time_after(jiffies, priv->csa_expire_time)) { priv->csa_chan = 0; priv->csa_expire_time = 0; }