summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8723au/hal/usb_halinit.c
diff options
context:
space:
mode:
authorShraddha Barke <shraddha.6596@gmail.com>2015-09-05 13:28:19 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-13 01:24:53 (GMT)
commit12d273767a819f7f1bfb90fb485b8caa959b6853 (patch)
tree509ad68974e718a36cfc96340d7b8a1380e5a1e8 /drivers/staging/rtl8723au/hal/usb_halinit.c
parent242850f48a96ce0bf48e81fa20850792f27fd3ba (diff)
downloadlinux-12d273767a819f7f1bfb90fb485b8caa959b6853.tar.xz
Staging: rtl8723au: hal: Remove braces for single statement blocks
The linux kernel coding style discourages use of braces for single statement blocks. This patch removes the unnecessary braces. The error was detected using checkpatch.pl. Coccinelle was used to make the change. Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au/hal/usb_halinit.c')
-rw-r--r--drivers/staging/rtl8723au/hal/usb_halinit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c
index 68156a1..9926b07 100644
--- a/drivers/staging/rtl8723au/hal/usb_halinit.c
+++ b/drivers/staging/rtl8723au/hal/usb_halinit.c
@@ -834,12 +834,11 @@ static void phy_SsPwrSwitch92CU(struct rtw_adapter *Adapter,
rtl8723au_read32(Adapter, rOFDM0_TRxPathEnable);
Adapter->pwrctrlpriv.PS_BBRegBackup[PSBBREG_RF2] =
rtl8723au_read32(Adapter, rFPGA0_RFMOD);
- if (pHalData->rf_type == RF_2T2R) {
+ if (pHalData->rf_type == RF_2T2R)
PHY_SetBBReg(Adapter, rFPGA0_XAB_RFParameter,
0x380038, 0);
- } else if (pHalData->rf_type == RF_1T1R) {
+ else if (pHalData->rf_type == RF_1T1R)
PHY_SetBBReg(Adapter, rFPGA0_XAB_RFParameter, 0x38, 0);
- }
PHY_SetBBReg(Adapter, rOFDM0_TRxPathEnable, 0xf0, 0);
PHY_SetBBReg(Adapter, rFPGA0_RFMOD, BIT(1), 1);