From cd37d9e6e5e9692d8efafc155df23fa142b63d03 Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 10 Feb 2004 00:03:41 +0000 Subject: * Patch by Jian Zhang, 3 Feb 2004: - Changed the incorrect FAT12BUFSIZE - data_begin in fsdata can be negative. Changed it to be short. * Code cleanup --- board/tb0229/flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/tb0229') diff --git a/board/tb0229/flash.c b/board/tb0229/flash.c index 5dea463..e9f6418 100644 --- a/board/tb0229/flash.c +++ b/board/tb0229/flash.c @@ -860,7 +860,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last) } for (info = info_first; info <= info_last; ++info) { - ulong b_end = info->start[0] + info->size;*//* bank end addr */ + ulong b_end = info->start[0] + info->size;*/ /* bank end addr */ /* short s_end = info->sector_count - 1; for (i=0; isector_count; ++i) { ulong e_addr = (i == s_end) ? b_end : info->start[i + 1]; @@ -872,7 +872,7 @@ int flash_erase (flash_info_t * info, int s_first, int s_last) } } -*//* finally write data to flash */ +*/ /* finally write data to flash */ /* for (info = info_first; info <= info_last && cnt>0; ++info) { ulong len; -- cgit v1.1