diff options
author | Yu Zhe <yuzhe@nfschina.com> | 2022-08-26 10:01:51 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-30 17:16:37 +0200 |
commit | 0b599cc63a8e09c067df4ab49af8573c2ce18673 (patch) | |
tree | 8b49323aca4000574b6452f088d24d6ba1b79ea9 | |
parent | staging/rtl8192e: fix repeated words in comments (diff) | |
download | linux-dev-0b599cc63a8e09c067df4ab49af8573c2ce18673.tar.xz linux-dev-0b599cc63a8e09c067df4ab49af8573c2ce18673.zip |
staging: r8188eu: use time_after_eq(a,b) to replace "a>=b"
time_after_eq() deals with timer wrapping correctly.
Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
Link: https://lore.kernel.org/r/20220826020151.10138-1-yuzhe@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/r8188eu/core/rtw_pwrctrl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_pwrctrl.c b/drivers/staging/r8188eu/core/rtw_pwrctrl.c index 10550bd2c16d..870d81735b8d 100644 --- a/drivers/staging/r8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/r8188eu/core/rtw_pwrctrl.c @@ -89,7 +89,7 @@ static bool rtw_pwr_unassociated_idle(struct adapter *adapter) struct wifidirect_info *pwdinfo = &adapter->wdinfo; bool ret = false; - if (adapter->pwrctrlpriv.ips_deny_time >= jiffies) + if (time_after_eq(adapter->pwrctrlpriv.ips_deny_time, jiffies)) goto exit; if (check_fwstate(pmlmepriv, WIFI_ASOC_STATE | WIFI_SITE_MONITOR) || |