Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions common/src/lx_nor_flash_next_block_to_erase_find.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ULONG max_logical_sector;
UINT status;
#endif
UINT obsolete_sectors_available;
UINT mapped_sectors_available;
UINT mapped_sectors_available = LX_FALSE;


/* Setup the block word pointer to the first word of the search block. */
Expand Down Expand Up @@ -171,9 +171,10 @@ UINT mapped_sectors_available;
if (erase_count > max_system_block_erase_count)
max_system_block_erase_count = erase_count;

/* Initialize the obsolete and mapped sector count available flags. */
/* Initialize the mapped sector count and the obsolete/mapped sector count availability flags. */
obsolete_sectors_available = LX_FALSE;
mapped_sectors_available = LX_FALSE;
mapped_sectors = 0;

#ifdef LX_NOR_ENABLE_OBSOLETE_COUNT_CACHE

Expand Down Expand Up @@ -469,5 +470,4 @@ UINT mapped_sectors_available;
}
/* Return success. */
return(LX_SUCCESS);
}

}