Measure Boot: Use psa_status_t instead of TF-M status

Corresponding change to the changes in TF-M.

Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Change-Id: I25a1c227ee8c5c0781979c08ecd7e1b85c824f62
diff --git a/partitions/measured_boot/measured_boot.c b/partitions/measured_boot/measured_boot.c
index 388ab79..c104ced 100644
--- a/partitions/measured_boot/measured_boot.c
+++ b/partitions/measured_boot/measured_boot.c
@@ -9,7 +9,6 @@
 #include "measured_boot_utils.h"
 #include "measured_boot_api.h"
 #include "psa/crypto.h"
-#include "tfm_api.h"
 #include "tfm_boot_status.h"
 #include "boot_hal.h"
 #include "service_api.h"
@@ -474,15 +473,14 @@
     uint8_t *tlv_curr;
     uint8_t claim;
     psa_status_t status = PSA_ERROR_GENERIC_ERROR;
-    int32_t rc;
     uint8_t version[VERSION_MAX_SIZE];
     size_t version_size;
 
     /* Collect the measurements from the shared data area and store them. */
-    rc = tfm_core_get_boot_data(TLV_MAJOR_MBS,
-                                (struct tfm_boot_data *)&boot_measurements,
-                                sizeof(boot_measurements));
-    if (rc != (int32_t)TFM_SUCCESS) {
+    status = tfm_core_get_boot_data(TLV_MAJOR_MBS,
+                                    (struct tfm_boot_data *)&boot_measurements,
+                                    sizeof(boot_measurements));
+    if (status != PSA_SUCCESS) {
         return PSA_ERROR_GENERIC_ERROR;
     }