Skip to content

Commit 50ae535

Browse files
committed
undo the change for nfMemObject_Read
1 parent fcad456 commit 50ae535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wh_nvm_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static int nfPartition_ReadMemDirectory(whNvmFlashContext* context, int partitio
360360
memset(directory, 0, sizeof(*directory));
361361

362362
for(index = 0; (index < WOLFHSM_CFG_NVM_OBJECT_COUNT) && (ret == 0); index++) {
363-
(void)nfMemObject_Read(context,
363+
ret = nfMemObject_Read(context,
364364
offset + NF_DIRECTORY_OBJECT_OFFSET(index),
365365
&directory->objects[index]);
366366
}

0 commit comments

Comments
 (0)