staging: rtl8188eu: remove unnecessary ternary operator
authorMichael Straube <straube.linux@gmail.com>
Sat, 27 Oct 2018 20:28:46 +0000 (22:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 7 Nov 2018 11:41:00 +0000 (12:41 +0100)
The field accept_addba_req of struct mlme_ext_info has type bool.
Use the value of accept_addba_req directly instead of the ternary
operator in an asignment.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c

index 3e05e2c7f61b9a7b829adffcfc8fd922dd86fc7e..d678dcee73126155ac613b89dc97828a08a27186 100644 (file)
@@ -1504,8 +1504,7 @@ void process_addba_req(struct adapter *padapter, u8 *paddba_req, u8 *addr)
                tid = (param>>2)&0x0f;
                preorder_ctrl = &psta->recvreorder_ctrl[tid];
                preorder_ctrl->indicate_seq = 0xffff;
-               preorder_ctrl->enable = (pmlmeinfo->accept_addba_req) ? true
-                                                                     : false;
+               preorder_ctrl->enable = pmlmeinfo->accept_addba_req;
        }
 }