Browse Source

fix(layerscape): fix nv_storage assert checking

Fix incorrect assert checking.

Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
Change-Id: Ia963bfc053b578f0778ccf06d1dbc2ced4efc266
pull/1992/head
Jiafei Pan 3 years ago
parent
commit
5d599b71ea
  1. 2
      plat/nxp/common/nv_storage/plat_nv_storage.c

2
plat/nxp/common/nv_storage/plat_nv_storage.c

@ -93,7 +93,7 @@ int wr_nv_app_data(int data_offset,
uint8_t ready_to_write_val[sizeof(nv_app_data_t)];
uintptr_t nv_base_addr = NV_STORAGE_BASE_ADDR;
assert((nv_base_addr + data_offset + data_size) > (nv_base_addr + F_SECTOR_ERASE_SZ));
assert((nv_base_addr + data_offset + data_size) <= (nv_base_addr + F_SECTOR_ERASE_SZ));
ret = fspi_init(NXP_FLEXSPI_ADDR, NXP_FLEXSPI_FLASH_ADDR);

Loading…
Cancel
Save