In decon_init_resource(), 'ret' value is initialzed.
prevent defect 233996.
Change-Id: I7e50ebc470bd3e6e5ced40fe4fae5778f6644b00
Signed-off-by: hwangjae lee <hj-yo.lee@samsung.com>
struct platform_device *pdev, char *name)
{
struct resource *res;
- int ret;
+ int ret = 0;
/* Get memory resource and map SFR region. */
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
decon->res.ss_regs = dpu_get_sysreg_addr();
if (IS_ERR_OR_NULL(decon->res.ss_regs)) {
decon_err("failed to get sysreg addr\n");
+ ret = -EINVAL;
goto err;
}