mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
staging: rtl8723bs: core: rtw_mlme_ext.c: Remove set but unused variable
Removed set but unused 'reason_code' variable. Issue detected by GCC running with the warning option -Wunused-but-set-variable. Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com> Link: https://lore.kernel.org/r/20210524113433.25923-1-fmdefrancesco@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
db52e8f480
commit
f57e6d91a8
1 changed files with 1 additions and 4 deletions
|
@ -1721,7 +1721,7 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra
|
|||
struct recv_reorder_ctrl *preorder_ctrl;
|
||||
unsigned char *frame_body;
|
||||
unsigned char category, action;
|
||||
unsigned short tid, status, reason_code = 0;
|
||||
unsigned short tid, status;
|
||||
struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
|
||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||
u8 *pframe = precv_frame->u.hdr.rx_data;
|
||||
|
@ -1790,9 +1790,6 @@ unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_fra
|
|||
~BIT((frame_body[3] >> 4) & 0xf);
|
||||
psta->htpriv.candidate_tid_bitmap &=
|
||||
~BIT((frame_body[3] >> 4) & 0xf);
|
||||
|
||||
/* reason_code = frame_body[4] | (frame_body[5] << 8); */
|
||||
reason_code = get_unaligned_le16(&frame_body[4]);
|
||||
} else if ((frame_body[3] & BIT(3)) == BIT(3)) {
|
||||
tid = (frame_body[3] >> 4) & 0x0F;
|
||||
|
||||
|
|
Loading…
Reference in a new issue