diff --git a/ta/storage/storage.c b/ta/storage/storage.c index ddb308447..ff49fd1c7 100644 --- a/ta/storage/storage.c +++ b/ta/storage/storage.c @@ -244,9 +244,7 @@ TEE_Result ta_storage_cmd_unlink(uint32_t param_types, TEE_Param params[4]) (TEE_PARAM_TYPE_VALUE_INPUT, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE, TEE_PARAM_TYPE_NONE)); - res = TEE_CloseAndDeletePersistentObject1(o); - - return res; + return TEE_CloseAndDeletePersistentObject1(o); } TEE_Result ta_storage_cmd_rename(uint32_t command, uint32_t param_types,