Skip to contentSkip to conversation

vision2: Fix checkpatch warning

PATCH New Fabio Estevam 2 participants 2 messages Nov 21, 2011 – Nov 28, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vision2: Fix checkpatch warning

Fix the following checkpatch warning:

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

---
 board/ttcontrol/vision2/vision2.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
board/ttcontrol/vision2/vision2.c +1 -2
index f556d30..282de95 100644
@@ -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);
 
Signature · 1 line
1.6.0.4
#1 lore raw

PATCH 1/1 vision2: Fix checkpatch warning -- added to next

Hi Fabio,

Le 21/11/2011 16:57, Fabio Estevam a ?crit :

Quoted 14 lines

Fix the following checkpatch warning:

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

---
  board/ttcontrol/vision2/vision2.c |    3 +--
  1 files changed, 1 insertions(+), 2 deletions(-)
board/ttcontrol/vision2/vision2.c +0 -0
index f556d30..282de95 100644

board/ttcontrol/vision2/vision2.c static void setup_gpios(void) · line 434

Quoted 9 lines
board/ttcontrol/vision2/vision2.c +1 -2
@@ -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);

(chose to add to next as it is not a bugfix per se; vision2 builds fine already without this patch)

Added to u-boot-arm/next, thanks!

Amicalement,

Signature · 1 line
Albert.