浏览代码

board/esd/dasa_sim/flash.c: Fix GCC 4.6 warning

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd.eu>
Matthias Fuchs 13 年之前
父节点
当前提交
bbb1fe462c
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      board/esd/dasa_sim/flash.c

+ 0 - 3
board/esd/dasa_sim/flash.c

@@ -44,7 +44,6 @@ unsigned long flash_init (void)
 {
 {
 	unsigned long size_b0;
 	unsigned long size_b0;
 	int i;
 	int i;
-	unsigned long base_b0;
 
 
 	/* Init: no FLASHes known */
 	/* Init: no FLASHes known */
 	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
 	for (i=0; i<CONFIG_SYS_MAX_FLASH_BANKS; ++i) {
@@ -63,8 +62,6 @@ unsigned long flash_init (void)
 	/* Setup offsets */
 	/* Setup offsets */
 	flash_get_offsets (-size_b0, &flash_info[0]);
 	flash_get_offsets (-size_b0, &flash_info[0]);
 
 
-	base_b0 = -size_b0;
-
 	/* Monitor protection ON by default */
 	/* Monitor protection ON by default */
 	(void)flash_protect(FLAG_PROTECT_SET,
 	(void)flash_protect(FLAG_PROTECT_SET,
 			    -monitor_flash_len,
 			    -monitor_flash_len,