summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723au/core/rtw_xmit.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-05-25 22:43:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-25 15:14:38 -0700
commit0618dbc637c8ae9e3e4ebff4632a23bb6cc97ad8 (patch)
tree7ce7ecca83e695d74ed837a8b8097c8f767e6e61 /drivers/staging/rtl8723au/core/rtw_xmit.c
parenta6ab752c3f2a0cc4ba667b06c4259dc9a843d35f (diff)
staging: rtl8723au: Don't check check_fwstate() == false
In addition, remove a followon check for false just after having checked for true. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/core/rtw_xmit.c')
-rw-r--r--drivers/staging/rtl8723au/core/rtw_xmit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c
index cdd27c47f8fd..d0dc6386d237 100644
--- a/drivers/staging/rtl8723au/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723au/core/rtw_xmit.c
@@ -560,7 +560,7 @@ static int update_attrib(struct rtw_adapter *padapter,
pattrib->encrypt = 0;
if ((pattrib->ether_type != ETH_P_PAE) &&
- (check_fwstate(pmlmepriv, WIFI_MP_STATE) == false)) {
+ !check_fwstate(pmlmepriv, WIFI_MP_STATE)) {
RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
("\npsta->ieee8021x_blocked == true, "
"pattrib->ether_type(%.4x) != 0x888e\n",
@@ -1968,7 +1968,7 @@ int xmitframe_enqueue_for_sleeping_sta23a(struct rtw_adapter *padapter, struct x
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
int bmcst = is_multicast_ether_addr(pattrib->ra);
- if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == false)
+ if (!check_fwstate(pmlmepriv, WIFI_AP_STATE))
return ret;
if (pattrib->psta) {