Skip to content

Commit 9406450

Browse files
author
Oren Cohen
committed
Coverity bug fixes
1 parent 9cc017f commit 9406450

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

components/TARGET_PSA/spm/COMPONENT_SPE/spm_common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "psa_defs.h"
2020
#include "spm_internal.h"
2121
#include "spm_panic.h"
22-
#include "spm_api.h"
2322

2423
bool core_util_atomic_cas_u8(volatile uint8_t *ptr, uint8_t *expectedCurrentValue, uint8_t desiredValue);
2524

components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/COMPONENT_NSPE/spm_client_proxy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
#include "ipc_queue.h"
2525
#include "spm_client.h"
2626
#include "spm_messages.h"
27-
#include "mbed_critical.h"
2827
#include "mbed_assert.h"
2928
#include "cmsis_os2.h"
3029
#include "rtx_lib.h"

components/TARGET_PSA/spm/COMPONENT_SPM_MAILBOX/COMPONENT_NSPE/spm_mailbox_nspe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void spm_ipc_mailbox_init(void)
8080

8181
// This table is holding addresses of the platform's shared memory.
8282
addr_table_t *shared_addr_table_ptr = (addr_table_t *)PSA_SHARED_RAM_START;
83-
MBED_ASSERT(shared_addr_table_ptr->magic = ADDR_TABLE_MAGIC);
83+
MBED_ASSERT(shared_addr_table_ptr->magic == ADDR_TABLE_MAGIC);
8484

8585
ipc_base_queue_t *tx_queue_mem_ptr = (ipc_base_queue_t *)(shared_addr_table_ptr->tx_queue_ptr);
8686
MBED_ASSERT(tx_queue_mem_ptr->magic == IPC_QUEUE_BASE_MAGIC);

0 commit comments

Comments
 (0)