diff options
Diffstat (limited to 'lib/optee_clientApi/OpteeClientApiLib.c')
-rw-r--r-- | lib/optee_clientApi/OpteeClientApiLib.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lib/optee_clientApi/OpteeClientApiLib.c b/lib/optee_clientApi/OpteeClientApiLib.c index a2f8c12ab4..01f24ddb3e 100644 --- a/lib/optee_clientApi/OpteeClientApiLib.c +++ b/lib/optee_clientApi/OpteeClientApiLib.c @@ -17,11 +17,18 @@ TEEC_Result OpteeClientApiLibInitialize(void) { TEEC_Result status = TEEC_SUCCESS; - OpteeClientMemInit(); - - OpteeClientRkFsInit(); + status = OpteeClientMemInit(); + if (status != TEEC_SUCCESS) { + printf("OpteeClientMemInit fail!"); + return status; + } + status = OpteeClientRkFsInit(); + if (status != TEEC_SUCCESS) { + printf("OpteeClientRkFsInit fail!"); + return status; + } - return status; + return TEEC_SUCCESS; } /* |