summaryrefslogtreecommitdiff
path: root/board/svm_sc8xx
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-04 15:55:48 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:15:34 +0100
commit13bcd3c4d74125a1feecd91ee1d17daa421a1f8e (patch)
treebd10e7fe05cb8818e25a3680bb462b00952f4cc6 /board/svm_sc8xx
parente0ead84895dc439c42f83fa18ebbe88865e8383b (diff)
downloadu-boot-imx-13bcd3c4d74125a1feecd91ee1d17daa421a1f8e.zip
u-boot-imx-13bcd3c4d74125a1feecd91ee1d17daa421a1f8e.tar.gz
u-boot-imx-13bcd3c4d74125a1feecd91ee1d17daa421a1f8e.tar.bz2
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>
Diffstat (limited to 'board/svm_sc8xx')
-rw-r--r--board/svm_sc8xx/svm_sc8xx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/board/svm_sc8xx/svm_sc8xx.c b/board/svm_sc8xx/svm_sc8xx.c
index f34b835..771bb4a 100644
--- a/board/svm_sc8xx/svm_sc8xx.c
+++ b/board/svm_sc8xx/svm_sc8xx.c
@@ -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;
}
/* ------------------------------------------------------------------------- */