From 8b03038b44928582e2c5adba72bc1cfd420a01f5 Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Tue, 23 Aug 2022 14:28:24 +0100 Subject: [PATCH] target/renesas: remove extra flash write check --- src/target/renesas.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/target/renesas.c b/src/target/renesas.c index 463bb26..11bd432 100644 --- a/src/target/renesas.c +++ b/src/target/renesas.c @@ -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 */ 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 */ src += 2U; }