aboutsummaryrefslogtreecommitdiff
path: root/services/spd/trusty/trusty.c
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2016-11-23 09:50:53 +0000
committerSandrine Bailleux <sandrine.bailleux@arm.com>2016-11-23 16:35:55 +0000
commit696f41ec98c18a9d747acc8dac32f2aabce18ea8 (patch)
tree7ec906ee0b0a48a717ecb647d07de46aaf6563db /services/spd/trusty/trusty.c
parent5c0df525aca2bdae8cf8c1215eb523c24567f559 (diff)
downloadtrusted-firmware-a-696f41ec98c18a9d747acc8dac32f2aabce18ea8.tar.gz
Fix compilation warning in Trusty SPD
In release builds, the Trusty SPD fails to build because of an unused variable. Note that this warning message doesn't show in debug builds because INFO() messages are not compiled out like in release mode. This patch fixes this issue by removing this variable and using its value in place directly in the INFO() macro call. Change-Id: I1f552421181a09412315eef4eaca586012022018 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'services/spd/trusty/trusty.c')
-rw-r--r--services/spd/trusty/trusty.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/services/spd/trusty/trusty.c b/services/spd/trusty/trusty.c
index 4962d44a7e..7e8526d26e 100644
--- a/services/spd/trusty/trusty.c
+++ b/services/spd/trusty/trusty.c
@@ -270,24 +270,22 @@ static int32_t trusty_init(void)
static void trusty_cpu_suspend(void)
{
struct args ret;
- unsigned int linear_id = plat_my_core_pos();
ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_SUSPEND, 0, 0, 0);
if (ret.r0 != 0) {
INFO("%s: cpu %d, SMC_FC_CPU_SUSPEND returned unexpected value, %ld\n",
- __func__, linear_id, ret.r0);
+ __func__, plat_my_core_pos(), ret.r0);
}
}
static void trusty_cpu_resume(void)
{
struct args ret;
- unsigned int linear_id = plat_my_core_pos();
ret = trusty_context_switch(NON_SECURE, SMC_FC_CPU_RESUME, 0, 0, 0);
if (ret.r0 != 0) {
INFO("%s: cpu %d, SMC_FC_CPU_RESUME returned unexpected value, %ld\n",
- __func__, linear_id, ret.r0);
+ __func__, plat_my_core_pos(), ret.r0);
}
}