From: Zhiqin Wei Date: Mon, 9 May 2016 08:02:30 +0000 (+0800) Subject: drivers: video: rockchip: rga2: Fix compile warning X-Git-Tag: firefly_0821_release~2680 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a3926cf98e700683cad55d2acbae216c0ab98462;p=firefly-linux-kernel-4.4.55.git drivers: video: rockchip: rga2: Fix compile warning Change-Id: I3622b70a5b15014ccb5fb9fc09bced97db194dc8 Signed-off-by: Zhiqin Wei --- diff --git a/drivers/video/rockchip/rga2/rga2_mmu_info.c b/drivers/video/rockchip/rga2/rga2_mmu_info.c index b7f2a10a5fdf..b1cacd74e5d5 100644 --- a/drivers/video/rockchip/rga2/rga2_mmu_info.c +++ b/drivers/video/rockchip/rga2/rga2_mmu_info.c @@ -563,6 +563,8 @@ static int rga2_mmu_info_color_palette_mode(struct rga2_reg *reg, struct rga2_re byte_num = sw >> shift; stride = (byte_num + 3) & (~3); + SrcStart = 0; + DstStart = 0; SrcMemSize = 0; DstMemSize = 0; @@ -659,6 +661,7 @@ static int rga2_mmu_info_color_fill_mode(struct rga2_reg *reg, struct rga2_req * int ret; int status; + DstMemSize = 0; MMU_Base = NULL; do {