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

staging: rtl8723bs: Fix alignment to match open parenthesis

Adhere to Linux coding style. Fixes checkpatch warnings:
CHECK: Alignment should match open parenthesis
CHECK: line length of 101 exceeds 100 columns

Signed-off-by: Soumya Negi <soumya.negi97@gmail.com>
Link: https://lore.kernel.org/r/20220513025553.13634-1-soumya.negi97@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Soumya Negi and committed by
Greg Kroah-Hartman
f722d67f 404079e7

+13 -11
+13 -11
drivers/staging/rtl8723bs/core/rtw_ap.c
··· 520 520 521 521 /* B0 Config LDPC Coding Capability */ 522 522 if (TEST_FLAG(phtpriv_ap->ldpc_cap, LDPC_HT_ENABLE_TX) && 523 - GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) 523 + GET_HT_CAPABILITY_ELE_LDPC_CAP((u8 *)(&phtpriv_sta->ht_cap))) 524 524 SET_FLAG(cur_ldpc_cap, (LDPC_HT_ENABLE_TX | LDPC_HT_CAP_TX)); 525 525 526 526 /* B7 B8 B9 Config STBC setting */ 527 527 if (TEST_FLAG(phtpriv_ap->stbc_cap, STBC_HT_ENABLE_TX) && 528 - GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) 528 + GET_HT_CAPABILITY_ELE_RX_STBC((u8 *)(&phtpriv_sta->ht_cap))) 529 529 SET_FLAG(cur_stbc_cap, (STBC_HT_ENABLE_TX | STBC_HT_CAP_TX)); 530 530 } else { 531 531 phtpriv_sta->ampdu_enable = false; ··· 1065 1065 ); 1066 1066 1067 1067 if ((psecuritypriv->wpa_pairwise_cipher & WPA_CIPHER_CCMP) || 1068 - (psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_CCMP)) { 1069 - pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & (0x07 << 2)); 1068 + (psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_CCMP)) { 1069 + pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & 1070 + (0x07 << 2)); 1070 1071 } else { 1071 - pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & 0x00); 1072 + pht_cap->ampdu_params_info |= (IEEE80211_HT_CAP_AMPDU_DENSITY & 1073 + 0x00); 1072 1074 } 1073 1075 1074 1076 rtw_hal_get_def_var( ··· 1118 1116 pmlmepriv->htpriv.ht_option = false; 1119 1117 1120 1118 if ((psecuritypriv->wpa2_pairwise_cipher & WPA_CIPHER_TKIP) || 1121 - (psecuritypriv->wpa_pairwise_cipher & WPA_CIPHER_TKIP)) { 1119 + (psecuritypriv->wpa_pairwise_cipher & WPA_CIPHER_TKIP)) { 1122 1120 /* todo: */ 1123 1121 /* ht_cap = false; */ 1124 1122 } ··· 1727 1725 pmlmepriv->num_sta_no_short_preamble--; 1728 1726 1729 1727 if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) && 1730 - (pmlmepriv->num_sta_no_short_preamble == 0)) { 1728 + (pmlmepriv->num_sta_no_short_preamble == 0)) { 1731 1729 beacon_updated = true; 1732 1730 update_beacon(padapter, 0xFF, NULL, true); 1733 1731 } ··· 1765 1763 pmlmepriv->num_sta_no_short_slot_time++; 1766 1764 1767 1765 if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) && 1768 - (pmlmepriv->num_sta_no_short_slot_time == 1)) { 1766 + (pmlmepriv->num_sta_no_short_slot_time == 1)) { 1769 1767 beacon_updated = true; 1770 1768 update_beacon(padapter, 0xFF, NULL, true); 1771 1769 } ··· 1777 1775 pmlmepriv->num_sta_no_short_slot_time--; 1778 1776 1779 1777 if ((pmlmeext->cur_wireless_mode > WIRELESS_11B) && 1780 - (pmlmepriv->num_sta_no_short_slot_time == 0)) { 1778 + (pmlmepriv->num_sta_no_short_slot_time == 0)) { 1781 1779 beacon_updated = true; 1782 1780 update_beacon(padapter, 0xFF, NULL, true); 1783 1781 } ··· 2026 2024 start_bss_network(padapter); 2027 2025 2028 2026 if ((padapter->securitypriv.dot11PrivacyAlgrthm == _TKIP_) || 2029 - (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { 2027 + (padapter->securitypriv.dot11PrivacyAlgrthm == _AES_)) { 2030 2028 /* restore group key, WEP keys is restored in ips_leave() */ 2031 2029 rtw_set_key( 2032 2030 padapter, ··· 2064 2062 /* pairwise key */ 2065 2063 /* per sta pairwise key and settings */ 2066 2064 if ((psecuritypriv->dot11PrivacyAlgrthm == _TKIP_) || 2067 - (psecuritypriv->dot11PrivacyAlgrthm == _AES_)) { 2065 + (psecuritypriv->dot11PrivacyAlgrthm == _AES_)) { 2068 2066 rtw_setstakey_cmd(padapter, psta, true, false); 2069 2067 } 2070 2068 }