levelx
levelx copied to clipboard
Return status not checked in function _lx_nor_flash_block_reclaim
In function UINT _lx_nor_flash_block_reclaim(LX_NOR_FLASH *nor_flash)
A call is made to _lx_nor_flash_next_block_to_erase_find where the return status is not checked, this result in that erase_block, erase_count, mapped_sectors, obsolete_sectors variables are unassigned, and later used.
I would suggest a status handling like the one done in the same function when _lx_nor_flash_driver_write is called.