build: fix uninitialized-use when build with prebuilt toolchain [1/1]

PD#SWPL-8241

Problem:
** SYNC FROM GOOGLE **
Build failed due to uninitialzed variable

Solution:
Init to reasonable value

Verify:
Build with Android prebuilt toolchain

Change-Id: I09615276b48b6253f8084743a7d50081cfc24ec4
Signed-off-by: Shuide Chen <shuide.chen@amlogic.com>
This commit is contained in:
Chia-hung Duan
2019-07-03 14:40:41 +08:00
committed by Luke Go
parent a5ba93a43b
commit d12f067d05
2 changed files with 2 additions and 2 deletions

View File

@@ -445,7 +445,7 @@ static void check_sp_fault_again(struct pt_regs *regs)
{
unsigned long sp = 0, addr;
struct page *page;
int cache;
int cache = 0;
#ifdef CONFIG_ARM
sp = regs->ARM_sp;

View File

@@ -365,7 +365,7 @@ int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session)
{
struct optee_context_data *ctxdata = ctx->data;
struct tee_shm *shm;
struct optee_msg_arg *msg_arg;
struct optee_msg_arg *msg_arg = NULL;
phys_addr_t msg_parg;
struct optee_session *sess;