mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 06:31:31 +00:00
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: Wolfgang Denk <wd@denx.de>
This commit is contained in:
parent
e0ead84895
commit
13bcd3c4d7
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
|
Loading…
Add table
Reference in a new issue