aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShawn Shan <Shawn.Shan@arm.com>2021-06-09 14:54:17 +0800
committerShawn Shan <Shawn.Shan@arm.com>2021-06-09 17:04:33 +0800
commit8ddcfd484efd1e75ec8ed6a702039f8758f601d8 (patch)
treef4611a9347a3e84fc64b67f58b60567539353906
parent409023fa4c6d51070dd5ef39b48a6e686ddfcc1d (diff)
downloadtrusted-firmware-m-8ddcfd484efd1e75ec8ed6a702039f8758f601d8.tar.gz
SPM: Remove unused function
The function tfm_spm_partition_get_flags is not used in IPC mode now, remove it. Change-Id: Ia36823367784c0ad827c1c0e228ba2a65d0268e5 Signed-off-by: Shawn Shan <Shawn.Shan@arm.com>
-rw-r--r--secure_fw/spm/cmsis_psa/spm_ipc.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/secure_fw/spm/cmsis_psa/spm_ipc.c b/secure_fw/spm/cmsis_psa/spm_ipc.c
index e3cb1763f5..02fa3dcee4 100644
--- a/secure_fw/spm/cmsis_psa/spm_ipc.c
+++ b/secure_fw/spm/cmsis_psa/spm_ipc.c
@@ -283,20 +283,6 @@ static uint32_t get_partition_idx(uint32_t partition_id)
return SPM_INVALID_PARTITION_IDX;
}
-/**
- * \brief Get the flags associated with a partition
- *
- * \param[in] partition_idx Partition index
- *
- * \return Flags associated with the partition
- *
- * \note This function doesn't check if partition_idx is valid.
- */
-static uint32_t tfm_spm_partition_get_flags(uint32_t partition_idx)
-{
- return g_spm_partition_db.partitions[partition_idx].p_ldinf->flags;
-}
-
#if TFM_LVL != 1
/**
* \brief Change the privilege mode for partition thread mode.