mirror of
https://github.com/torvalds/linux
synced 2024-10-17 00:39:37 +00:00
Staging: rtl8192e: Remove unnecessary parenthesis in rtllib_ap_sec_type()
Remove parnthesis to fix checkpatch Warning: Unnecessary parentheses around ieee->wpa_ie[14] Signed-off-by: Tree Davies <tdavies@darkphysics.net> Link: https://lore.kernel.org/r/20231223015942.418263-6-tdavies@darkphysics.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
be0d49be0c
commit
a87f009c4f
|
@ -2231,7 +2231,7 @@ u8 rtllib_ap_sec_type(struct rtllib_device *ieee)
|
|||
return SEC_ALG_WEP;
|
||||
} else if ((wpa_ie_len != 0)) {
|
||||
if (((ieee->wpa_ie[0] == 0xdd) &&
|
||||
(!memcmp(&(ieee->wpa_ie[14]), ccmp_ie, 4))) ||
|
||||
(!memcmp(&ieee->wpa_ie[14], ccmp_ie, 4))) ||
|
||||
((ieee->wpa_ie[0] == 0x30) &&
|
||||
(!memcmp(&ieee->wpa_ie[10], ccmp_rsn_ie, 4))))
|
||||
return SEC_ALG_CCMP;
|
||||
|
|
Loading…
Reference in a new issue