summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/core
diff options
context:
space:
mode:
authorFabio Aiuto <fabioaiuto83@gmail.com>2021-04-04 16:09:39 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-05 12:16:16 +0200
commit0dfb2de7bd68e49a5003c73d50b8f285bbec89ee (patch)
treebbbe7271d67000822ad4b4fd7a462fb249eaef67 /drivers/staging/rtl8723bs/core
parent4e7157733a27087388458e4ed6700b92e19bcd89 (diff)
downloadlinux-0dfb2de7bd68e49a5003c73d50b8f285bbec89ee.tar.bz2
staging: rtl8723bs: fix comparison in if condition in core/rtw_recv.c
fix post-commit checkpatch issue: CHECK: Using comparison to false is error prone 27: FILE: drivers/staging/rtl8723bs/core/rtw_recv.c:381: + if (psecuritypriv-> bcheck_grpkey == false && and fix the same issue in second comparison to true inside the same if condition IS_MCAST(prxattrib->ra) == true ^^^^^^^ Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/4b363edbc2da36cb3c63edbcd43e3285754768c9.1617545239.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/core')
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_recv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
index bf53695f9f7d..eac663119290 100644
--- a/drivers/staging/rtl8723bs/core/rtw_recv.c
+++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
@@ -378,8 +378,8 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p
} else {
/* mic checked ok */
- if (psecuritypriv->bcheck_grpkey == false &&
- IS_MCAST(prxattrib->ra) == true)
+ if (!psecuritypriv->bcheck_grpkey &&
+ IS_MCAST(prxattrib->ra))
psecuritypriv->bcheck_grpkey = true;
}
}