From 98707d047b0e88100b5f3758f2879cb16705512b Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Fri, 25 Jan 2019 17:16:22 +0200 Subject: [PATCH] Fix Typo --- .../COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp | 6 +++--- .../COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c | 6 +++--- .../psa_prot_internal_storage/psa_prot_internal_storage.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp index 08f784eb43..3e1364082b 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp @@ -30,7 +30,7 @@ psa_its_status_t psa_its_set(psa_its_uid_t uid, uint32_t data_length, const void *p_data, psa_its_create_flags_t create_flags) { if (!p_data && data_length) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } // KVStore initiation: @@ -49,7 +49,7 @@ psa_its_status_t psa_its_set(psa_its_uid_t uid, uint32_t data_length, const void psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t data_length, void *p_data) { if (!p_data && data_length) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } // KVStore initiation: @@ -66,7 +66,7 @@ psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t d psa_its_status_t psa_its_get_info(psa_its_uid_t uid, struct psa_its_info_t *p_info) { if (!p_info) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } // KVStore initiation: diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c index 48c840e29b..2508b9d09a 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c @@ -22,7 +22,7 @@ psa_its_status_t psa_its_set(psa_its_uid_t uid, uint32_t data_length, const void *p_data, psa_its_create_flags_t create_flags) { if (!p_data && data_length) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } psa_invec msg[3] = { @@ -48,7 +48,7 @@ psa_its_status_t psa_its_set(psa_its_uid_t uid, uint32_t data_length, const void psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t data_length, void *p_data) { if (!p_data && data_length) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } psa_invec msg[2] = { @@ -75,7 +75,7 @@ psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t d psa_its_status_t psa_its_get_info(psa_its_uid_t uid, struct psa_its_info_t *p_info) { if (!p_info) { - return PSA_ITS_ERROR_IVALID_ARGUMENTS; + return PSA_ITS_ERROR_INVALID_ARGUMENTS; } struct psa_its_info_t info = { 0, PSA_ITS_FLAG_NONE }; diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/psa_prot_internal_storage.h b/components/TARGET_PSA/services/psa_prot_internal_storage/psa_prot_internal_storage.h index fb75f8240d..0e8eeaef23 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/psa_prot_internal_storage.h +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/psa_prot_internal_storage.h @@ -59,7 +59,7 @@ typedef uint32_t psa_its_status_t; #define PSA_ITS_ERROR_FLAGS_NOT_SUPPORTED 2 /**< The operation failed because one or more of the flags provided in `create_flags` is not supported or is not valid */ #define PSA_ITS_ERROR_INSUFFICIENT_SPACE 3 /**< The operation failed because there was insufficient space on the storage medium */ #define PSA_ITS_ERROR_STORAGE_FAILURE 4 /**< The operation failed because the physical storage has failed (Fatal error) */ -#define PSA_ITS_ERROR_IVALID_ARGUMENTS 5 /**< The operation failed because one of the provided pointers is invalid, for example is `NULL` or references memory the caller cannot access */ +#define PSA_ITS_ERROR_INVALID_ARGUMENTS 5 /**< The operation failed because one of the provided pointers is invalid, for example is `NULL` or references memory the caller cannot access */ #define PSA_ITS_ERROR_UID_NOT_FOUND 6 /**< The operation failed because the provided key value was not found in the storage */ #define PSA_ITS_ERROR_INCORRECT_SIZE 7 /**< The operation failed because the data associated with provided key is not the same size as `data_size`, or `offset+data_size` is too large for the data, but `offset` is less than the size */ #define PSA_PS_ERROR_OFFSET_INVALID 8 /**< The operation failed because an offset was supplied that is invalid for the existing data associated with the uid. For example, offset is greater that the size of the data */