Skip to content

Commit

Permalink
RSE: Remove unused variables
Browse files Browse the repository at this point in the history
Remove the following unused variables:
 - 'lcm_err' in derive_using_krtl_or_zero_key()
   in common/bl1/rse_kmu_keys.c
 - 'lcm_err' in rse_get_boot_state()
   in common/rse_boot_state.c
 - 'cc_err' in provision_psa_rot()
   in common/provisioning/bl1_provisioning.c

Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Change-Id: Ibe766e87a58a8ffdf0b6382f935be0bd2dfe30db
  • Loading branch information
nicola-mazzucato-arm authored and adeaarm committed Aug 6, 2024
1 parent 1ddad94 commit 77d6b2f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion platform/ext/target/arm/rse/common/bl1/rse_kmu_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ static enum tfm_plat_err_t derive_using_krtl_or_zero_key(const uint8_t *label,
enum kmu_error_t kmu_err;
enum lcm_tp_mode_t tp_mode;
enum lcm_bool_t sp_enabled;
enum lcm_error_t lcm_err;
enum rse_kmu_slot_id_t input_slot;
uint32_t *key_buf;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ enum tfm_plat_err_t provision_psa_rot(const volatile struct rse_provisioning_bun
size_t data_output_size)
{
enum tfm_plat_err_t plat_err;
cc3xx_err_t cc_err;

gpio_set(RSE_GPIO_STATE_DM_SECURE_PROVISIONING_STARTS);

Expand Down
1 change: 0 additions & 1 deletion platform/ext/target/arm/rse/common/rse_boot_state.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ int rse_get_boot_state(uint8_t *state, size_t state_buf_len,
size_t *state_size, boot_state_include_mask mask)
{
int rc;
enum lcm_error_t lcm_err;
cc3xx_err_t err;

enum plat_otp_lcs_t lcs;
Expand Down

0 comments on commit 77d6b2f

Please sign in to comment.