Skip to content

Commit

Permalink
fixup! core: rpmb: cleanup useless write_counter in struct rpmb_fat_e…
Browse files Browse the repository at this point in the history
…ntry

Remove unused function.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
  • Loading branch information
jforissier committed Dec 6, 2023
1 parent 4c87d93 commit a2fa57e
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions core/tee/tee_rpmb_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1518,35 +1518,6 @@ static TEE_Result tee_rpmb_write(uint16_t dev_id, uint32_t addr,
return res;
}

/*
* Read the RPMB write counter.
*
* @dev_id Device ID of the eMMC device.
* @counter Pointer to the counter.
*/
static TEE_Result tee_rpmb_get_write_counter(uint16_t dev_id,
uint32_t *counter)
{
TEE_Result res = TEE_SUCCESS;

if (!counter)
return TEE_ERROR_BAD_PARAMETERS;

if (rpmb_dead)
return TEE_ERROR_COMMUNICATION;

if (!rpmb_ctx || !rpmb_ctx->wr_cnt_synced) {
res = tee_rpmb_init(dev_id);
if (res != TEE_SUCCESS)
goto func_exit;
}

*counter = rpmb_ctx->wr_cnt;

func_exit:
return res;
}

/*
* Read the RPMB max block.
*
Expand Down

0 comments on commit a2fa57e

Please sign in to comment.