X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fmtd%2Fdataflash.c;h=981ccd5b4b1ce697ef26d884d0e90bf6d1ad0a84;hb=239cb9d904cfa8ab50d840a47b3306189d695c75;hp=96cd395e71a7ad30ab230cc1b56f040e3bcc0e7c;hpb=bd876772ee04095e5dd943d97515a1f14bad4b1c;p=oweals%2Fu-boot.git diff --git a/drivers/mtd/dataflash.c b/drivers/mtd/dataflash.c index 96cd395e71..981ccd5b4b 100644 --- a/drivers/mtd/dataflash.c +++ b/drivers/mtd/dataflash.c @@ -39,7 +39,6 @@ int AT91F_DataflashInit (void) int i, j; int dfcode; int part; - int last_part; int found[CONFIG_SYS_MAX_DATAFLASH_BANKS]; unsigned char protected; @@ -136,7 +135,6 @@ int AT91F_DataflashInit (void) dataflash_info[i].Device.pages_size) - 1; part = 0; - last_part = 0; /* set the area addresses */ for(j = 0; j < NB_DATAFLASH_AREA; j++) { if(found[i]!=0) { @@ -147,7 +145,6 @@ int AT91F_DataflashInit (void) dataflash_info[i].Device.area_list[j].end = dataflash_info[i].end_address + dataflash_info[i].logical_address; - last_part = 1; } else { dataflash_info[i].Device.area_list[j].end = area_list[part].end +