target/renesas: remove extra flash write check
This commit is contained in:
parent
2f3c2c20a1
commit
8b03038b44
|
@ -585,11 +585,6 @@ static int renesas_rv40_flash_write(target_flash_s *f, target_addr_t dest, const
|
||||||
/* copy data from source address to destination */
|
/* copy data from source address to destination */
|
||||||
target_mem_write16(t, RV40_CMD, *(uint16_t *)src);
|
target_mem_write16(t, RV40_CMD, *(uint16_t *)src);
|
||||||
|
|
||||||
while (target_mem_read32(t, RV40_FSTATR) & RV40_FSTATR_DBFULL) {
|
|
||||||
if (target_check_error(t) || platform_timeout_is_expired(&timeout))
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* 2 bytes of data */
|
/* 2 bytes of data */
|
||||||
src += 2U;
|
src += 2U;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue