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

Staging: rtl8723bs: fixed a brace coding style

Fixed a coding style issue - unnecessary braces for single statement

Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Link: https://lore.kernel.org/r/20210314120858.37951-1-42.hyeyoo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

HyeonggonYoo and committed by
Greg Kroah-Hartman
0ba8b68b ebf48247

+10 -15
+10 -15
drivers/staging/rtl8723bs/core/rtw_cmd.c
··· 676 676 struct wlan_bssid_ex *pdev_network = &padapter->registrypriv.dev_network; 677 677 u8 res = _SUCCESS; 678 678 679 - if (pmlmepriv->assoc_ssid.SsidLength == 0) { 679 + if (pmlmepriv->assoc_ssid.SsidLength == 0) 680 680 RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, (" createbss for Any SSid:%s\n", pmlmepriv->assoc_ssid.Ssid)); 681 - } else { 681 + else 682 682 RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, (" createbss for SSid:%s\n", pmlmepriv->assoc_ssid.Ssid)); 683 - } 684 683 685 684 pcmd = rtw_zmalloc(sizeof(struct cmd_obj)); 686 685 if (pcmd == NULL) { ··· 766 767 u32 tmp_len; 767 768 u8 *ptmp = NULL; 768 769 769 - if (pmlmepriv->assoc_ssid.SsidLength == 0) { 770 + if (pmlmepriv->assoc_ssid.SsidLength == 0) 770 771 RT_TRACE(_module_rtl871x_cmd_c_, _drv_info_, ("+Join cmd: Any SSid\n")); 771 - } else { 772 + else 772 773 RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+Join cmd: SSid =[%s]\n", pmlmepriv->assoc_ssid.Ssid)); 773 - } 774 774 775 775 pcmd = rtw_zmalloc(sizeof(struct cmd_obj)); 776 776 if (pcmd == NULL) { ··· 808 810 809 811 psecuritypriv->authenticator_ie[0] = (unsigned char)psecnetwork->IELength; 810 812 811 - if ((psecnetwork->IELength-12) < (256-1)) { 813 + if ((psecnetwork->IELength-12) < (256-1)) 812 814 memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], psecnetwork->IELength-12); 813 - } else { 815 + else 814 816 memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->IEs[12], (256-1)); 815 - } 816 817 817 818 psecnetwork->IELength = 0; 818 819 /* Added by Albert 2009/02/18 */ ··· 967 970 968 971 memcpy(psetstakey_para->addr, sta->hwaddr, ETH_ALEN); 969 972 970 - if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) { 973 + if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)) 971 974 psetstakey_para->algorithm = (unsigned char) psecuritypriv->dot11PrivacyAlgrthm; 972 - } else { 975 + else 973 976 GET_ENCRY_ALGO(psecuritypriv, sta, psetstakey_para->algorithm, false); 974 - } 975 977 976 - if (unicast_key == true) { 978 + if (unicast_key == true) 977 979 memcpy(&psetstakey_para->key, &sta->dot118021x_UncstKey, 16); 978 - } else { 980 + else 979 981 memcpy(&psetstakey_para->key, &psecuritypriv->dot118021XGrpKey[psecuritypriv->dot118021XGrpKeyid].skey, 16); 980 - } 981 982 982 983 /* jeff: set this because at least sw key is ready */ 983 984 padapter->securitypriv.busetkipkey = true;