mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 06:43:09 +00:00
staging: rtl8712: style fix indentation
This patch fixes various coding style issues in the rtl8712 module as noted by checkpatch.pl related to indentation. It fixes the following checkpatch.pl warning: WARNING: suspect code indent for conditional statements Signed-off-by: Martin Homuth <martin@martinhomuth.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3be4fdf6f6
commit
e34fc47a3f
@ -1719,12 +1719,12 @@ static int r871x_wx_set_auth(struct net_device *dev,
|
|||||||
*/
|
*/
|
||||||
if (padapter->securitypriv.ndisencryptstatus ==
|
if (padapter->securitypriv.ndisencryptstatus ==
|
||||||
Ndis802_11Encryption1Enabled) {
|
Ndis802_11Encryption1Enabled) {
|
||||||
/* it means init value, or using wep,
|
/* it means init value, or using wep,
|
||||||
* ndisencryptstatus =
|
* ndisencryptstatus =
|
||||||
* Ndis802_11Encryption1Enabled,
|
* Ndis802_11Encryption1Enabled,
|
||||||
* then it needn't reset it;
|
* then it needn't reset it;
|
||||||
*/
|
*/
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (paramval) {
|
if (paramval) {
|
||||||
|
@ -1068,16 +1068,16 @@ static sint aes_cipher(u8 *key, uint hdrlen,
|
|||||||
if ((frtype == WIFI_DATA_CFACK) ||
|
if ((frtype == WIFI_DATA_CFACK) ||
|
||||||
(frtype == WIFI_DATA_CFPOLL) ||
|
(frtype == WIFI_DATA_CFPOLL) ||
|
||||||
(frtype == WIFI_DATA_CFACKPOLL)) {
|
(frtype == WIFI_DATA_CFACKPOLL)) {
|
||||||
qc_exists = 1;
|
qc_exists = 1;
|
||||||
if (hdrlen != WLAN_HDR_A3_QOS_LEN)
|
if (hdrlen != WLAN_HDR_A3_QOS_LEN)
|
||||||
hdrlen += 2;
|
hdrlen += 2;
|
||||||
} else if ((frsubtype == 0x08) ||
|
} else if ((frsubtype == 0x08) ||
|
||||||
(frsubtype == 0x09) ||
|
(frsubtype == 0x09) ||
|
||||||
(frsubtype == 0x0a) ||
|
(frsubtype == 0x0a) ||
|
||||||
(frsubtype == 0x0b)) {
|
(frsubtype == 0x0b)) {
|
||||||
if (hdrlen != WLAN_HDR_A3_QOS_LEN)
|
if (hdrlen != WLAN_HDR_A3_QOS_LEN)
|
||||||
hdrlen += 2;
|
hdrlen += 2;
|
||||||
qc_exists = 1;
|
qc_exists = 1;
|
||||||
} else {
|
} else {
|
||||||
qc_exists = 0;
|
qc_exists = 0;
|
||||||
}
|
}
|
||||||
|
@ -145,7 +145,7 @@ static unsigned int ffaddr2pipehdl(struct dvobj_priv *pdvobj, u32 addr)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pipe = 0;
|
pipe = 0;
|
||||||
}
|
}
|
||||||
return pipe;
|
return pipe;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user