]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
actua1/actua2/actua3: Fix multiple unused variable warnings
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 24 Feb 2008 23:03:10 +0000 (00:03 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 2 Mar 2008 20:12:06 +0000 (21:12 +0100)
- 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'

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
board/actux1/actux1.c
board/actux2/actux2.c
board/actux3/actux3.c

index b555fdbd6c0026dd053cf21be333a4b5361620c8..d1d7f6cd353130e24bc434f9591d8fd4c5c83621 100644 (file)
@@ -89,7 +89,6 @@ int board_init (void)
  */
 int checkboard (void)
 {
-       char revision;
        char *s = getenv ("serial#");
 
        puts ("Board: AcTux-1 rev.");
index f3a81a84b4322c8376fb5fa249440240d41e63f8..99daef6c5a3db7fc6e1203ea88e1ca2ed0555e79 100644 (file)
@@ -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);
 }
index 647e4e74f9c665b5df3f0f35ee206c110c345c28..812bc2b1a6167e9b334ff59990ac2a1642151989 100644 (file)
@@ -111,7 +111,6 @@ int board_init (void)
  */
 int checkboard (void)
 {
-       char revision;
        char *s = getenv ("serial#");
 
        puts ("Board: AcTux-3 rev.");