Skip to contentSkip to conversation

staging: wilc1000: Removed curly braces

PATCH In review Aparna Karuthodi 2 participants 2 messages Sep 15, 2015 – Sep 16, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: Removed curly braces

Removed the curly braces of a single statement if block to remove a coding style warning detected by checkpatch.
The warning is given below:
WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/wilc1000/coreconfigurator.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +1 -2
index 0c964c6..5241699 100644
@@ -1944,9 +1944,8 @@ s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
 	gstrConfigPktInfo.bRespRequired = bRespRequired;
 
 	s32Error = SendRawPacket(gps8ConfigPacket, s32ConfigPacketLen);
-	if (s32Error != WILC_SUCCESS) {
+	if (s32Error != WILC_SUCCESS)
 		goto End_ConfigPkt;
-	}
 
 	WILC_memset((void *)gps8ConfigPacket, 0, MAX_PACKET_BUFF_SIZE);
 
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 7 lines · Aparna Karuthodi

Removed the curly braces of a single statement if block to remove a coding style warning detected by checkpatch.
The warning is given below:
WARNING: braces {} are not necessary for single statement blocks

---

This will not apply any more due to recent modification to this file.

regards
sudip