lkml.org 
[lkml]   [2021]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/19] staging: rtl8723bs: remove unnecessary parentheses
    Date
    fix following post-commit checkpatch issue:

    CHECK: Unnecessary parentheses around 'prxattrib->bdecrypted'
    125: FILE: drivers/staging/rtl8723bs/core/rtw_recv.c:365:
    + if ((prxattrib->bdecrypted) && (brpt_micerror))

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

    diff --git a/drivers/staging/rtl8723bs/core/rtw_recv.c b/drivers/staging/rtl8723bs/core/rtw_recv.c
    index 18ad719c9826..668a703dee7f 100644
    --- a/drivers/staging/rtl8723bs/core/rtw_recv.c
    +++ b/drivers/staging/rtl8723bs/core/rtw_recv.c
    @@ -362,7 +362,7 @@ static signed int recvframe_chkmic(struct adapter *adapter, union recv_frame *p
    if ((IS_MCAST(prxattrib->ra) == true) && (prxattrib->key_index != pmlmeinfo->key_index))
    brpt_micerror = false;

    - if ((prxattrib->bdecrypted) && (brpt_micerror))
    + if (prxattrib->bdecrypted && brpt_micerror)
    rtw_handle_tkip_mic_err(adapter, (u8)IS_MCAST(prxattrib->ra));

    res = _FAIL;
    --
    2.20.1
    \
     
     \ /
      Last update: 2021-04-07 15:51    [W:2.100 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site