From 2fb1862f155399cfb939bb35cf94e249b76ce74f Mon Sep 17 00:00:00 2001 From: Bai Ping Date: Tue, 13 Nov 2018 10:40:09 +0800 Subject: MLK-20238-02 plat: imx8m: initialized the value before use Fix Coverity CID 5209712: Uninitialized scalar variable (UNINIT) issue. Signed-off-by: Bai Ping --- plat/imx/common/sip_svc.c | 4 +--- 1 file changed, 1 insertion(+), 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 */ -- cgit v1.2.3