summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Ceresoli2015-12-02 22:54:05 +0100
committerGreg Kroah-Hartman2016-02-08 03:58:31 +0100
commit35ad45a1992d43920968718f606a1ce3d9a86074 (patch)
tree261f64315a641b3c8b6e52cb1e21c04aa1a3b104
parentstaging: rtl8188eu: rename camelcase bAcceptAddbaReq (diff)
downloadkernel-qcow2-linux-35ad45a1992d43920968718f606a1ce3d9a86074.tar.gz
kernel-qcow2-linux-35ad45a1992d43920968718f606a1ce3d9a86074.tar.xz
kernel-qcow2-linux-35ad45a1992d43920968718f606a1ce3d9a86074.zip
staging: rtl8188eu: rtw_mlme_ext.c: simplify call to issue_action_BA()
Using the ternary operator allows to more concisely write the same code, and to stay within 80 characters without even increasing the number of lines. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mlme_ext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
index 31faa266bf6b..e6020265d6de 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
@@ -3739,10 +3739,10 @@ static unsigned int OnAction_back(struct adapter *padapter,
memcpy(&(pmlmeinfo->ADDBA_req), &(frame_body[2]), sizeof(struct ADDBA_request));
process_addba_req(padapter, (u8 *)&(pmlmeinfo->ADDBA_req), addr);
- if (pmlmeinfo->accept_addba_req)
- issue_action_BA(padapter, addr, RTW_WLAN_ACTION_ADDBA_RESP, 0);
- else
- issue_action_BA(padapter, addr, RTW_WLAN_ACTION_ADDBA_RESP, 37);/* reject ADDBA Req */
+ /* 37 = reject ADDBA Req */
+ issue_action_BA(padapter, addr,
+ RTW_WLAN_ACTION_ADDBA_RESP,
+ pmlmeinfo->accept_addba_req ? 0 : 37);
break;
case RTW_WLAN_ACTION_ADDBA_RESP: /* ADDBA response */
status = get_unaligned_le16(&frame_body[3]);