staging: r8188eu: remove unnecessary parentheses in core/rtw_cmd.c
Remove unnecessary parentheses in core/rtw_cmd.c. Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210816155818.24005-4-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f1249cfdb3
commit
8ccacd41b6
1 changed files with 1 additions and 1 deletions
|
|
@ -832,7 +832,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|||
|
||||
psecuritypriv->authenticator_ie[0] = (unsigned char)psecnetwork->IELength;
|
||||
|
||||
if ((psecnetwork->IELength-12) < 255) {
|
||||
if (psecnetwork->IELength-12 < 255) {
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], psecnetwork->IELength-12);
|
||||
} else {
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], 255);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue