Skip to content

Commit 98707d0

Browse files
orenc17Oren Cohen
authored andcommitted
Fix Typo
1 parent f5e4f69 commit 98707d0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_EMUL/psa_prot_internal_storage.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
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)
3131
{
3232
if (!p_data && data_length) {
33-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
33+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
3434
}
3535

3636
// KVStore initiation:
@@ -49,7 +49,7 @@ psa_its_status_t psa_its_set(psa_its_uid_t uid, uint32_t data_length, const void
4949
psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t data_length, void *p_data)
5050
{
5151
if (!p_data && data_length) {
52-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
52+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
5353
}
5454

5555
// 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
6666
psa_its_status_t psa_its_get_info(psa_its_uid_t uid, struct psa_its_info_t *p_info)
6767
{
6868
if (!p_info) {
69-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
69+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
7070
}
7171

7272
// KVStore initiation:

components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_PSA_SRV_IPC/psa_prot_internal_storage.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
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)
2323
{
2424
if (!p_data && data_length) {
25-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
25+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
2626
}
2727

2828
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
4848
psa_its_status_t psa_its_get(psa_its_uid_t uid, uint32_t data_offset, uint32_t data_length, void *p_data)
4949
{
5050
if (!p_data && data_length) {
51-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
51+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
5252
}
5353

5454
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
7575
psa_its_status_t psa_its_get_info(psa_its_uid_t uid, struct psa_its_info_t *p_info)
7676
{
7777
if (!p_info) {
78-
return PSA_ITS_ERROR_IVALID_ARGUMENTS;
78+
return PSA_ITS_ERROR_INVALID_ARGUMENTS;
7979
}
8080

8181
struct psa_its_info_t info = { 0, PSA_ITS_FLAG_NONE };

components/TARGET_PSA/services/psa_prot_internal_storage/psa_prot_internal_storage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ typedef uint32_t psa_its_status_t;
5959
#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 */
6060
#define PSA_ITS_ERROR_INSUFFICIENT_SPACE 3 /**< The operation failed because there was insufficient space on the storage medium */
6161
#define PSA_ITS_ERROR_STORAGE_FAILURE 4 /**< The operation failed because the physical storage has failed (Fatal error) */
62-
#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 */
62+
#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 */
6363
#define PSA_ITS_ERROR_UID_NOT_FOUND 6 /**< The operation failed because the provided key value was not found in the storage */
6464
#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 */
6565
#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 */

0 commit comments

Comments
 (0)