]> git.sur5r.net Git - u-boot/commitdiff
board/svm_sc8xx/svm_sc8xx.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Fri, 4 Nov 2011 15:55:48 +0000 (15:55 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:15:34 +0000 (22:15 +0100)
Fix:
svm_sc8xx.c: In function 'checkboard':
svm_sc8xx.c:83:6: warning: variable 'board_type' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/svm_sc8xx/svm_sc8xx.c

index f34b83515e8fdc845d74e7503f226d8b8f069ed6..771bb4a5feaaf8afb1428264ab76f8d7784b215a 100644 (file)
@@ -80,15 +80,12 @@ int checkboard(void)
        char buf[64];
        int i;
        int l = getenv_f("serial#", buf, sizeof(buf));
-       int board_type;
 
        if (l < 0 || strncmp(buf, "SVM8", 4)) {
                printf("### No HW ID - assuming SVM SC8xx\n");
                return (0);
        }
 
-       board_type = 1;
-
        for (i = 0; i < l; ++i) {
                if (buf[i] == ' ')
                        break;
@@ -97,7 +94,7 @@ int checkboard(void)
 
        putc('\n');
 
-       return (0);
+       return 0;
 }
 
 /* ------------------------------------------------------------------------- */