summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBai Ping <ping.bai@nxp.com>2018-11-13 10:40:09 +0800
committerBai Ping <ping.bai@nxp.com>2018-11-13 10:45:01 +0800
commit2fb1862f155399cfb939bb35cf94e249b76ce74f (patch)
treefb8787b91b4e5a12fd19e27e03a6fe7da6c31d61
parent9fe5f166ab303f125975482a0ed0b7d96cbccd67 (diff)
MLK-20238-02 plat: imx8m: initialized the value before use
Fix Coverity CID 5209712: Uninitialized scalar variable (UNINIT) issue. Signed-off-by: Bai Ping <ping.bai@nxp.com>
-rw-r--r--plat/imx/common/sip_svc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plat/imx/common/sip_svc.c b/plat/imx/common/sip_svc.c
index db14773e..4f74c7be 100644
--- a/plat/imx/common/sip_svc.c
+++ b/plat/imx/common/sip_svc.c
@@ -88,8 +88,6 @@ int imx_wakeup_src_handler(uint32_t smc_fid,
u_register_t x2,
u_register_t x3)
{
- uint64_t ret;
-
switch(x1) {
case FSL_SIP_WAKEUP_SRC_IRQSTEER:
wakeup_src_irqsteer = true;
@@ -101,7 +99,7 @@ int imx_wakeup_src_handler(uint32_t smc_fid,
return SMC_UNK;
}
- return ret;
+ return SMC_OK;
}
/* i.MX platform specific service SMC handler */