summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/include
diff options
context:
space:
mode:
authorMichael Straube2018-11-23 21:40:58 +0100
committerGreg Kroah-Hartman2018-11-26 20:59:04 +0100
commit3f95106ea07562f4e9cf4d6798e09b821d55210b (patch)
tree2ede74b252cccf3f46a5f2656e5f81dace9f05ee /drivers/staging/rtl8188eu/include
parentstaging: vboxvideo: Rename uint32_t type to u32 (diff)
downloadkernel-qcow2-linux-3f95106ea07562f4e9cf4d6798e09b821d55210b.tar.gz
kernel-qcow2-linux-3f95106ea07562f4e9cf4d6798e09b821d55210b.tar.xz
kernel-qcow2-linux-3f95106ea07562f4e9cf4d6798e09b821d55210b.zip
staging: rtl8188eu: cleanup remaining comparsions to true
Cleanup remaining comparsions to true. if (x == true) -> if (x) if (x != true) -> if (!x) if (!x == true) -> if (!x) Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/include')
-rw-r--r--drivers/staging/rtl8188eu/include/rtw_mlme.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h
index 8d9d663f0645..126b96906171 100644
--- a/drivers/staging/rtl8188eu/include/rtw_mlme.h
+++ b/drivers/staging/rtl8188eu/include/rtw_mlme.h
@@ -285,7 +285,7 @@ static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, int state)
static inline void clr_fwstate(struct mlme_priv *pmlmepriv, int state)
{
spin_lock_bh(&pmlmepriv->lock);
- if (check_fwstate(pmlmepriv, state) == true)
+ if (check_fwstate(pmlmepriv, state))
pmlmepriv->fw_state ^= state;
spin_unlock_bh(&pmlmepriv->lock);
}