Thread (2 messages) 2 messages, 2 authors, 2015-07-31

[PATCH] Staging:wilc1000 :Remove braces for single statement blocks

STALE4080d

From: Shraddha Barke <hidden>
Date: 2015-07-31 05:16:20
Also in: lkml
Subsystem: staging subsystem, the rest · Maintainers: Greg Kroah-Hartman, Linus Torvalds

This patch fixes the following checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks
Signed-off-by: Shraddha Barke <redacted>
---
 drivers/staging/wilc1000/coreconfigurator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c
index 4d5bd1c..1143282 100644
--- a/drivers/staging/wilc1000/coreconfigurator.c
+++ b/drivers/staging/wilc1000/coreconfigurator.c
@@ -1055,10 +1055,8 @@ s32 DeallocateSurveyResults(wid_site_survey_reslts_s *pstrSurveyResults)
 {
 	s32 s32Error = WILC_SUCCESS;
 
-	if (pstrSurveyResults != NULL) {
+	if (pstrSurveyResults != NULL)
 		WILC_FREE(pstrSurveyResults);
-	}
-
 	return s32Error;
 }
 #endif
-- 
2.1.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help