SST: Improve code quality
This patch fixes the following things:
* cast unused parameters to void to be more explicit
* check the returning value of functions
* add const keyword when mutability is not required
* initialise unitialised variables
* add parenthesis for better readability of some expressions
Change-Id: Ib0f49959f86caab8ae0fe3e75568045f96727310
Signed-off-by: Hugues de Valon <hugues.devalon@arm.com>
diff --git a/interface/src/tfm_sst_api.c b/interface/src/tfm_sst_api.c
index 0678dd4..260dbc2 100644
--- a/interface/src/tfm_sst_api.c
+++ b/interface/src/tfm_sst_api.c
@@ -121,14 +121,21 @@
psa_ps_status_t psa_ps_create(psa_ps_uid_t uid, uint32_t size,
psa_ps_create_flags_t create_flags)
{
- (void)uid, (void)size, (void)create_flags;
+ (void)uid;
+ (void)size;
+ (void)create_flags;
+
return PSA_PS_ERROR_NOT_SUPPORTED;
}
psa_ps_status_t psa_ps_set_extended(psa_ps_uid_t uid, uint32_t data_offset,
uint32_t data_length, const void *p_data)
{
- (void)uid, (void)data_offset, (void)data_length, (void)p_data;
+ (void)uid;
+ (void)data_offset;
+ (void)data_length;
+ (void)p_data;
+
return PSA_PS_ERROR_NOT_SUPPORTED;
}