[U-Boot] [PATCH] vision2: Fix checkpatch warning

Fabio Estevam fabio.estevam at freescale.com
Mon Nov 21 16:57:39 CET 2011


Fix the following checkpatch warning:

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

Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
---
 board/ttcontrol/vision2/vision2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/board/ttcontrol/vision2/vision2.c b/board/ttcontrol/vision2/vision2.c
index f556d30..282de95 100644
--- a/board/ttcontrol/vision2/vision2.c
+++ b/board/ttcontrol/vision2/vision2.c
@@ -428,9 +428,8 @@ static void setup_gpios(void)
 	gpio_direction_output(4, 1);
 
 	gpio_direction_output(7, 0);
-	for (i = 65; i < 71; i++) {
+	for (i = 65; i < 71; i++)
 		gpio_direction_output(i, 0);
-	}
 
 	gpio_direction_output(94, 0);
 
-- 
1.6.0.4




More information about the U-Boot mailing list