mirror of https://github.com/ARMmbed/mbed-os.git
Fix Typo
parent
f5e4f69c02
commit
98707d047b
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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 };
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue