Skip to content

Commit a87f009

Browse files
treedaviesgregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent be0d49b commit a87f009

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/rtl8192e/rtllib_softmac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2231,7 +2231,7 @@ u8 rtllib_ap_sec_type(struct rtllib_device *ieee)
22312231
return SEC_ALG_WEP;
22322232
} else if ((wpa_ie_len != 0)) {
22332233
if (((ieee->wpa_ie[0] == 0xdd) &&
2234-
(!memcmp(&(ieee->wpa_ie[14]), ccmp_ie, 4))) ||
2234+
(!memcmp(&ieee->wpa_ie[14], ccmp_ie, 4))) ||
22352235
((ieee->wpa_ie[0] == 0x30) &&
22362236
(!memcmp(&ieee->wpa_ie[10], ccmp_rsn_ie, 4))))
22372237
return SEC_ALG_CCMP;

0 commit comments

Comments
 (0)