Skip to contentSkip to conversation

Staging:wilc1000 :Remove braces for single statement blocks

PATCH In review Shraddha Barke 2 participants 2 messages Jul 31, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging:wilc1000 :Remove braces for single statement blocks

This patch fixes the following checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks

---
 drivers/staging/wilc1000/coreconfigurator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +1 -3
index 4d5bd1c..1143282 100644
@@ -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
Signature · 1 line
2.1.0
#1 lore raw
Quoted 4 lines · Shraddha Barke

This patch fixes the following checkpatch.pl warning:

WARNING: braces {} are not necessary for single statement blocks

There should be one line space between your commit log and Signed-off-by line.

Quoted 28 lines
---
 drivers/staging/wilc1000/coreconfigurator.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +1 -4
index 4d5bd1c..1143282 100644
@@ -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

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html