From 278d599c11f356c05ac57b36a20e9eaa4b7fe721 Mon Sep 17 00:00:00 2001 From: Mihir Joshi Date: Thu, 1 Mar 2018 14:36:24 -0800 Subject: spd: tlkd: remove unwanted assert on System Suspend entry c_rt_ctx is used to store current SP before the system goes into suspend. The assert for its value being zero is not really necessary as the value gets over-written eventually. This patch removes assert(tlk_ctx->c_rt_ctx == 0) from the System Suspend path, as a result. Change-Id: If41f15e74ebbbfd82958d8e179114899b2ffb0a7 Signed-off-by: Mihir Joshi --- services/spd/tlkd/tlkd_common.c | 1 - 1 file changed, 1 deletion(-) (limited to 'services') diff --git a/services/spd/tlkd/tlkd_common.c b/services/spd/tlkd/tlkd_common.c index 2f0194eb..dbe6c2e3 100644 --- a/services/spd/tlkd/tlkd_common.c +++ b/services/spd/tlkd/tlkd_common.c @@ -126,7 +126,6 @@ uint64_t tlkd_synchronous_sp_entry(tlk_context_t *tlk_ctx) /* Passing a NULL context is a critical programming error */ assert(tlk_ctx); - assert(tlk_ctx->c_rt_ctx == 0); /* Apply the Secure EL1 system register context and switch to it */ assert(cm_get_context(SECURE) == &tlk_ctx->cpu_ctx); -- cgit v1.2.3