Commit 77f2760e authored by Stephan Snyman's avatar Stephan Snyman Committed by Greg Kroah-Hartman

staging: rtl8192e: add missing braces {}

Add missing braces to if/else statements to adhere to the
Linux kernel coding-style guidelines.
These issues were reported by checkpatch.pl

"CHECK: braces {} should be used on all arms of this statement"
Signed-off-by: default avatarStephan Snyman <rooiratel@tinyglitch.net>
Tested-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20230420133209.4661-1-rooiratel@tinyglitch.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9fd32106
...@@ -264,8 +264,9 @@ static int rtllib_is_eapol_frame(struct rtllib_device *ieee, ...@@ -264,8 +264,9 @@ static int rtllib_is_eapol_frame(struct rtllib_device *ieee,
RTLLIB_FCTL_FROMDS && RTLLIB_FCTL_FROMDS &&
memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN) == 0) { memcmp(hdr->addr1, dev->dev_addr, ETH_ALEN) == 0) {
/* FromDS frame with own addr as DA */ /* FromDS frame with own addr as DA */
} else } else {
return 0; return 0;
}
if (skb->len < 24 + 8) if (skb->len < 24 + 8)
return 0; return 0;
...@@ -433,8 +434,9 @@ static int is_duplicate_packet(struct rtllib_device *ieee, ...@@ -433,8 +434,9 @@ static int is_duplicate_packet(struct rtllib_device *ieee,
if (*last_frag + 1 != frag) if (*last_frag + 1 != frag)
/* out-of-order fragment */ /* out-of-order fragment */
goto drop; goto drop;
} else } else {
*last_seq = seq; *last_seq = seq;
}
*last_frag = frag; *last_frag = frag;
*last_time = jiffies; *last_time = jiffies;
...@@ -2314,8 +2316,9 @@ static inline int rtllib_network_init( ...@@ -2314,8 +2316,9 @@ static inline int rtllib_network_init(
if (stats->freq == RTLLIB_52GHZ_BAND) { if (stats->freq == RTLLIB_52GHZ_BAND) {
/* for A band (No DS info) */ /* for A band (No DS info) */
network->channel = stats->received_channel; network->channel = stats->received_channel;
} else } else {
network->flags |= NETWORK_HAS_CCK; network->flags |= NETWORK_HAS_CCK;
}
network->wpa_ie_len = 0; network->wpa_ie_len = 0;
network->rsn_ie_len = 0; network->rsn_ie_len = 0;
...@@ -2329,9 +2332,10 @@ static inline int rtllib_network_init( ...@@ -2329,9 +2332,10 @@ static inline int rtllib_network_init(
return 1; return 1;
network->mode = 0; network->mode = 0;
if (stats->freq == RTLLIB_52GHZ_BAND)
if (stats->freq == RTLLIB_52GHZ_BAND) {
network->mode = IEEE_A; network->mode = IEEE_A;
else { } else {
if (network->flags & NETWORK_HAS_OFDM) if (network->flags & NETWORK_HAS_OFDM)
network->mode |= IEEE_G; network->mode |= IEEE_G;
if (network->flags & NETWORK_HAS_CCK) if (network->flags & NETWORK_HAS_CCK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment