fix condition warned by post-hook checkpatch

CHECK: Using comparison to true is error prone
71: FILE: drivers/staging/rtl8723bs/core/rtw_xmit.c:565:
+               ((padapter->securitypriv.sw_encrypt == true) ||
                 (psecuritypriv->hw_decrypted == false)))

Signed-off-by: Fabio Aiuto <fabioaiut...@gmail.com>
---
 drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c 
b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index beee87db85a5..957d7e3a4d4a 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -562,7 +562,7 @@ static s32 update_attrib_sec_info(struct adapter *padapter, 
struct pkt_attrib *p
                memcpy(pattrib->dot118021x_UncstKey.skey, 
psta->dot118021x_UncstKey.skey, 16);
 
        if (pattrib->encrypt &&
-               ((padapter->securitypriv.sw_encrypt == true) || 
(psecuritypriv->hw_decrypted == false)))
+               ((padapter->securitypriv.sw_encrypt) || 
(!psecuritypriv->hw_decrypted)))
                pattrib->bswenc = true;
        else
                pattrib->bswenc = false;
-- 
2.20.1

Reply via email to