Skip to contentSkip to conversation

actua1/actua2/actua3: Fix multiple unused variable

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 6 messages Feb 24, 2008 – Mar 2, 2008 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

cover actua1/actua2/actua3: Fix multiple unused variable

- actua1:
actux1.c: In function 'checkboard':
actux1.c:92: warning: unused variable 'revision'

- actua2:
actux2.c: In function 'checkboard':
actux2.c:100: warning: unused variable 's' actux2.c:99: warning: unused variable 'revision' actux2.c: In function 'reset_phy':
actux2.c:130: warning: unused variable 'i'

- actua3:
actux3.c: In function 'checkboard':
actux3.c:114: warning: unused variable 'revision'

board/actux1/actux1.c +0 -1
index b555fdb..d1d7f6c 100644
@@ -89,7 +89,6 @@ int board_init (void)
  */
 int checkboard (void)
 {
-	char revision;
 	char *s = getenv ("serial#");
 
 	puts ("Board: AcTux-1 rev.");
board/actux2/actux2.c +6 -4
index f3a81a8..18c8303 100644
@@ -96,11 +96,15 @@ int board_init (void)
  */
 int checkboard (void)
 {
-	char revision;
 	char *s = getenv ("serial#");
-
+	
 	puts ("Board: AcTux-2 rev.");
 	putc (ACTUX2_BOARDREL + 'A' - 1);
+
+	if (s != NULL) {
+		puts (", serial# ");
+		puts (s);
+	}
 	putc ('\n');
 
 	return (0);
@@ -127,8 +131,6 @@ u32 get_board_rev (void)
 
 void reset_phy (void)
 {
-	int i;
-
 	/* init IcPlus IP175C ethernet switch to native IP175C mode */
 	miiphy_write ("NPE0", 29, 31, 0x175C);
 }
board/actux3/actux3.c +0 -1
index 647e4e7..812bc2b 100644
@@ -111,7 +111,6 @@ int board_init (void)
  */
 int checkboard (void)
 {
-	char revision;
 	char *s = getenv ("serial#");
 
 	puts ("Board: AcTux-3 rev.");
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/2 arm-imx: Fix registers definition

Sync registers definition with linux

board/mx1fs2/mx1fs2.c +1 -1
index 1c026f0..90a33c2 100644
@@ -48,7 +48,7 @@ static void logo_init(void)
 	imx_gpio_mode(PD14_PF_FLM_VSYNC);
 	imx_gpio_mode(PD13_PF_LP_HSYNC);
 	imx_gpio_mode(PD6_PF_LSCLK);
-	imx_gpio_mode(GPIO_PORTD | GPIO_OUT | GPIO_GPIO);
+	imx_gpio_mode(GPIO_PORTD | GPIO_OUT | GPIO_DR);
 	imx_gpio_mode(PD11_PF_CONTRAST);
 	imx_gpio_mode(PD10_PF_SPL_SPR);
 
include/asm-arm/arch-imx/imx-regs.h +117 -60

302 lines not on this page · raw message

Signature · 1 line
1.5.4.1
#2 lore raw

PATCH 2/2 mx1fs2/flash: Fix multiple pointer targets in assignment differ in signedness

board/mx1fs2/flash.c +1 -1
index 3806310..47885bc 100644
@@ -173,7 +173,7 @@ flash_print_info(flash_info_t * info)
 	int i;
 	uchar *boottype;
 	uchar *bootletter;
-	uchar *fmt;
+	char *fmt;
 	uchar botbootletter[] = "B";
 	uchar topbootletter[] = "T";
 	uchar botboottype[] = "bottom boot sector";
Signature · 1 line
1.5.4.1
#3 lore raw

PATCH 1/2 arm-imx: Fix registers definition

In reply to Jean-Christophe PLAGNIOL-VILLARD
Quoted 5 lines · In message <[email protected]> you wrote:

--===============1558488003==

Sync registers definition with linux

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Conceptual integrity in turn dictates that the  design  must  proceed
from  one  mind,  or  from  a  very small number of agreeing resonant
minds.               - Frederick Brooks Jr., "The Mythical Man Month" 
#4 lore raw

cover actua1/actua2/actua3: Fix multiple unused variable

In reply to Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · In message <[email protected]> you wrote:

- actua1:
actux1.c: In function 'checkboard':
actux1.c:92: warning: unused variable 'revision'

- actua2:
actux2.c: In function 'checkboard':
actux2.c:100: warning: unused variable 's' actux2.c:99: warning: unused variable 'revision' actux2.c: In function 'reset_phy':
actux2.c:130: warning: unused variable 'i'

Quoted 5 lines

- actua3:
actux3.c: In function 'checkboard':
actux3.c:114: warning: unused variable 'revision'

Applied, thanks.

Note:
warning: 1 line applied after fixing whitespace errors.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Puritan is someone who is deathly afraid that  someone,  somewhere,
is having fun.
#5 lore raw

cover actua1/actua2/actua3: Fix multiple unused variable

In reply to Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · In message <[email protected]> you wrote:

- actua1:
actux1.c: In function 'checkboard':
actux1.c:92: warning: unused variable 'revision'

- actua2:
actux2.c: In function 'checkboard':
actux2.c:100: warning: unused variable 's' actux2.c:99: warning: unused variable 'revision' actux2.c: In function 'reset_phy':
actux2.c:130: warning: unused variable 'i'

Quoted 5 lines

- actua3:
actux3.c: In function 'checkboard':
actux3.c:114: warning: unused variable 'revision'

Applied, thanks.

Note:
warning: 1 line applied after fixing whitespace errors.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Puritan is someone who is deathly afraid that  someone,  somewhere,
is having fun.