All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/10] Staging: rtl8723au: hal: Remove braces for single statement blocks
@ 2015-09-05 13:28 Shraddha Barke
  2015-09-05 13:28 ` [PATCH 02/10] Staging: lustre: ptlrpc: " Shraddha Barke
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Shraddha Barke @ 2015-09-05 13:28 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Oleg Drokin, linux-kernel, Greg Donald, Joe Perches
  Cc: Shraddha Barke

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>
---
 drivers/staging/rtl8723au/hal/usb_halinit.c | 5 ++---
 1 file 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);
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-09-05 13:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-05 13:28 [PATCH 01/10] Staging: rtl8723au: hal: Remove braces for single statement blocks Shraddha Barke
2015-09-05 13:28 ` [PATCH 02/10] Staging: lustre: ptlrpc: " Shraddha Barke
2015-09-05 13:28 ` [PATCH 03/10] Staging: lustre: libcfs: " Shraddha Barke
2015-09-05 13:28 ` [PATCH 04/10] Staging: lustre: obdclass: " Shraddha Barke
2015-09-05 13:28 ` [PATCH 05/10] Staging: lustre: llite: llite_close.c: Remove unnecessary braces Shraddha Barke
2015-09-05 13:28 ` [PATCH 06/10] Staging: lustre: llite: llite_lib.c: " Shraddha Barke
2015-09-05 13:28 ` [PATCH 07/10] Staging: lustre: lnet: Remove braces for single statement blocks Shraddha Barke
2015-09-05 13:28 ` [PATCH 08/10] Staging: android: Remove unnecessary braces Shraddha Barke
2015-09-05 13:28 ` [PATCH 09/10] Staging: speakup: Remove braces for single statement blocks Shraddha Barke
2015-09-05 13:28 ` [PATCH 10/10] Staging: rtl8192e: rtl_wx.c: " Shraddha Barke

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.