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

staging: rtl8723au: Fix checkpatch errors

Fix checkpatch.pl "spaces required around":
>, =, =, =, =, +=, >, >, <, <, :, < errors.

Signed-off-by: MihaelaGaman <mp.gaman@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

MihaelaGaman and committed by
Greg Kroah-Hartman
adabff85 1703c17b

+13 -13
+13 -13
drivers/staging/rtl8723au/core/rtw_ap.c
··· 79 79 80 80 p = rtw_get_ie23a(pie, WLAN_EID_TIM, &tim_ielen, 81 81 pnetwork_mlmeext->IELength); 82 - if (p != NULL && tim_ielen>0) { 82 + if (p != NULL && tim_ielen > 0) { 83 83 tim_ielen += 2; 84 84 85 85 premainder_ie = p+tim_ielen; ··· 125 125 memcpy(pbackup_remainder_ie, premainder_ie, remainder_ielen); 126 126 } 127 127 128 - *dst_ie++= WLAN_EID_TIM; 128 + *dst_ie++ = WLAN_EID_TIM; 129 129 130 130 if ((pstapriv->tim_bitmap&0xff00) && (pstapriv->tim_bitmap&0x00fc)) 131 131 tim_ielen = 5; 132 132 else 133 133 tim_ielen = 4; 134 134 135 - *dst_ie++= tim_ielen; 135 + *dst_ie++ = tim_ielen; 136 136 137 - *dst_ie++= 0;/* DTIM count */ 138 - *dst_ie++= 1;/* DTIM period */ 137 + *dst_ie++ = 0;/* DTIM count */ 138 + *dst_ie++ = 1;/* DTIM period */ 139 139 140 140 if (pstapriv->tim_bitmap & BIT(0))/* for bc/mc frames */ 141 141 *dst_ie++ = BIT(0);/* bitmap ctrl */ ··· 146 146 *dst_ie++ = *(u8 *)&tim_bitmap_le; 147 147 } else if (tim_ielen == 5) { 148 148 memcpy(dst_ie, &tim_bitmap_le, 2); 149 - dst_ie+= 2; 149 + dst_ie += 2; 150 150 } 151 151 152 152 /* copy remainder IE */ ··· 194 194 list_for_each_safe(plist, ptmp, phead) { 195 195 psta = container_of(plist, struct sta_info, auth_list); 196 196 197 - if (psta->expire_to>0) { 197 + if (psta->expire_to > 0) { 198 198 psta->expire_to--; 199 199 if (psta->expire_to == 0) { 200 200 list_del_init(&psta->auth_list); ··· 335 335 336 336 } 337 337 338 - if (backup_oper_channel>0) /* back to the original operation channel */ 338 + if (backup_oper_channel > 0) /* back to the original operation channel */ 339 339 SelectChannel23a(padapter, backup_oper_channel); 340 340 } 341 341 ··· 363 363 return; 364 364 365 365 /* b/g mode ra_bitmap */ 366 - for (i = 0; i<sizeof(psta->bssrateset); i++) 366 + for (i = 0; i < sizeof(psta->bssrateset); i++) 367 367 { 368 368 if (psta->bssrateset[i]) 369 369 tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f); ··· 474 474 psta->bssratelen = supportRateNum; 475 475 476 476 /* b/g mode ra_bitmap */ 477 - for (i = 0; i<supportRateNum; i++) 477 + for (i = 0; i < supportRateNum; i++) 478 478 { 479 479 if (psta->bssrateset[i]) 480 480 tx_ra_bitmap |= rtw_get_bit_value_from_ieee_value23a(psta->bssrateset[i]&0x7f); ··· 706 706 707 707 /* Set Security */ 708 708 val8 = (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) ? 709 - 0xcc: 0xcf; 709 + 0xcc : 0xcf; 710 710 rtl8723a_set_sec_cfg(padapter, val8); 711 711 712 712 /* Beacon Control related register */ ··· 1865 1865 for (i = 0; i < chk_alive_num; i++) { 1866 1866 psta = chk_alive_list[i]; 1867 1867 1868 - if (psta->state &_FW_LINKED) { 1868 + if (psta->state & _FW_LINKED) { 1869 1869 Update_RA_Entry23a(padapter, psta); 1870 1870 /* pairwise key */ 1871 1871 rtw_setstakey_cmd23a(padapter, (unsigned char *)psta, true); ··· 1902 1902 1903 1903 pmlmepriv->ht_op_mode = 0; 1904 1904 1905 - for (i = 0; i<NUM_STA; i++) 1905 + for (i = 0; i < NUM_STA; i++) 1906 1906 pstapriv->sta_aid[i] = NULL; 1907 1907 1908 1908 /* for ACL */