Skip to content
Snippets Groups Projects
Commit 13bcd3c4 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

board/svm_sc8xx/svm_sc8xx.c: Fix GCC 4.6 build warning


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: default avatarWolfgang Denk <wd@denx.de>
parent e0ead848
No related branches found
No related tags found
No related merge requests found
...@@ -80,15 +80,12 @@ int checkboard(void) ...@@ -80,15 +80,12 @@ int checkboard(void)
char buf[64]; char buf[64];
int i; int i;
int l = getenv_f("serial#", buf, sizeof(buf)); int l = getenv_f("serial#", buf, sizeof(buf));
int board_type;
if (l < 0 || strncmp(buf, "SVM8", 4)) { if (l < 0 || strncmp(buf, "SVM8", 4)) {
printf("### No HW ID - assuming SVM SC8xx\n"); printf("### No HW ID - assuming SVM SC8xx\n");
return (0); return (0);
} }
board_type = 1;
for (i = 0; i < l; ++i) { for (i = 0; i < l; ++i) {
if (buf[i] == ' ') if (buf[i] == ' ')
break; break;
...@@ -97,7 +94,7 @@ int checkboard(void) ...@@ -97,7 +94,7 @@ int checkboard(void)
putc('\n'); putc('\n');
return (0); return 0;
} }
/* ------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------- */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment