Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Homuth and committed by
Greg Kroah-Hartman
e34fc47a 3be4fdf6

+13 -13
+6 -6
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
··· 1719 1719 */ 1720 1720 if (padapter->securitypriv.ndisencryptstatus == 1721 1721 Ndis802_11Encryption1Enabled) { 1722 - /* it means init value, or using wep, 1723 - * ndisencryptstatus = 1724 - * Ndis802_11Encryption1Enabled, 1725 - * then it needn't reset it; 1726 - */ 1727 - break; 1722 + /* it means init value, or using wep, 1723 + * ndisencryptstatus = 1724 + * Ndis802_11Encryption1Enabled, 1725 + * then it needn't reset it; 1726 + */ 1727 + break; 1728 1728 } 1729 1729 1730 1730 if (paramval) {
+6 -6
drivers/staging/rtl8712/rtl871x_security.c
··· 1068 1068 if ((frtype == WIFI_DATA_CFACK) || 1069 1069 (frtype == WIFI_DATA_CFPOLL) || 1070 1070 (frtype == WIFI_DATA_CFACKPOLL)) { 1071 - qc_exists = 1; 1072 - if (hdrlen != WLAN_HDR_A3_QOS_LEN) 1073 - hdrlen += 2; 1071 + qc_exists = 1; 1072 + if (hdrlen != WLAN_HDR_A3_QOS_LEN) 1073 + hdrlen += 2; 1074 1074 } else if ((frsubtype == 0x08) || 1075 1075 (frsubtype == 0x09) || 1076 1076 (frsubtype == 0x0a) || 1077 1077 (frsubtype == 0x0b)) { 1078 - if (hdrlen != WLAN_HDR_A3_QOS_LEN) 1079 - hdrlen += 2; 1080 - qc_exists = 1; 1078 + if (hdrlen != WLAN_HDR_A3_QOS_LEN) 1079 + hdrlen += 2; 1080 + qc_exists = 1; 1081 1081 } else { 1082 1082 qc_exists = 0; 1083 1083 }
+1 -1
drivers/staging/rtl8712/usb_ops_linux.c
··· 145 145 break; 146 146 } 147 147 } else { 148 - pipe = 0; 148 + pipe = 0; 149 149 } 150 150 return pipe; 151 151 }