From 3ed283cd95953f1af6ab77174d35df5ca7dfcae4 Mon Sep 17 00:00:00 2001 From: LE/Jiri Novotny Date: Thu, 7 Sep 2023 10:19:22 +0200 Subject: [PATCH] reclaim: fix unitialized status when LX_DIRECT_READ is used Signed-off-by: LE/Jiri Novotny --- common/src/lx_nor_flash_block_reclaim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/lx_nor_flash_block_reclaim.c b/common/src/lx_nor_flash_block_reclaim.c index eea676d..f121f56 100644 --- a/common/src/lx_nor_flash_block_reclaim.c +++ b/common/src/lx_nor_flash_block_reclaim.c @@ -445,7 +445,7 @@ UINT status; _lx_nor_flash_system_error(nor_flash, LX_SYSTEM_ALLOCATION_FAILED); /* Return the error. */ - return(status); + return(LX_SYSTEM_ALLOCATION_FAILED); } /* Decrement the number of mapped sectors. */