diff options
author | Sherry Zhnag <sherry.zhang2@arm.com> | 2021-09-09 11:49:49 +0800 |
---|---|---|
committer | Sherry Zhang <sherry.zhang2@arm.com> | 2021-09-09 17:43:37 +0800 |
commit | 76727035932f36c389bc237353acbcd4c8491384 (patch) | |
tree | bb1a3bacdde890cd6181178e321e33700c0a0023 | |
parent | 9b2a79930e9068f4c40d73c10f795148c37454b9 (diff) |
FWU: Fix the bug in flash_area_read in flash_map.c
Signed-off-by: Sherry Zhang <sherry.zhang2@arm.com>
Change-Id: If61ca93cb441cf0b0d2963c45f53ddf42a9728c6
-rw-r--r-- | bl2/src/flash_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bl2/src/flash_map.c b/bl2/src/flash_map.c index 112750dfb..f216a9ec9 100644 --- a/bl2/src/flash_map.c +++ b/bl2/src/flash_map.c @@ -94,7 +94,7 @@ int flash_area_read(const struct flash_area *area, uint32_t off, void *dst, uint32_t aligned_off; uint8_t temp_buffer[sizeof(uint32_t)]; uint8_t align_unit, i = 0; - int ret; + int ret = 0; /* Valid entries for data item width */ uint32_t data_width_byte[] = { |