The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] media: exynos-gsc: fix build warning
@ 2014-11-18 10:57 Lad, Prabhakar
  2014-11-25 15:04 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 4+ messages in thread
From: Lad, Prabhakar @ 2014-11-18 10:57 UTC (permalink / raw)
  To: Kukjin Kim, Mauro Carvalho Chehab, LMML
  Cc: linux-samsung-soc, LKML, Lad, Prabhakar

this patch fixes following build warning:

gsc-core.c:350:17: warning: 'low_plane' may be used uninitialized
gsc-core.c:371:31: warning: 'high_plane' may be used uninitialized

Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com>
---
 drivers/media/platform/exynos-gsc/gsc-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c
index 91d226b..6c71b17 100644
--- a/drivers/media/platform/exynos-gsc/gsc-core.c
+++ b/drivers/media/platform/exynos-gsc/gsc-core.c
@@ -347,8 +347,8 @@ void gsc_set_prefbuf(struct gsc_dev *gsc, struct gsc_frame *frm)
 		s_chk_addr = frm->addr.cb;
 		s_chk_len = frm->payload[1];
 	} else if (frm->fmt->num_planes == 3) {
-		u32 low_addr, low_plane, mid_addr, mid_plane;
-		u32 high_addr, high_plane;
+		u32 low_addr, low_plane = 0, mid_addr, mid_plane;
+		u32 high_addr, high_plane = 0;
 		u32 t_min, t_max;
 
 		t_min = min3(frm->addr.y, frm->addr.cb, frm->addr.cr);
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-25 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 10:57 [PATCH] media: exynos-gsc: fix build warning Lad, Prabhakar
2014-11-25 15:04 ` Mauro Carvalho Chehab
2014-11-25 15:18   ` Prabhakar Lad
2014-11-25 15:21     ` Prabhakar Lad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox