aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/omap3isp/ispqueue.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2012-12-17 02:52:48 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-12-27 15:21:49 -0500
commite19bc863f1f45223a85935f070177eda6b422f8f (patch)
tree69dc28978a6fa7c779e136b03f40531bb2c59b3a /drivers/media/platform/omap3isp/ispqueue.c
parent36a495a336c3fbbb2f4eeed2a94ab6d5be19d186 (diff)
[media] omap3isp: ispqueue: Fix uninitialized variable compiler warnings
drivers/media/platform/omap3isp/ispqueue.c:399:18: warning: 'pa' may be used uninitialized in this function [-Wuninitialized] This is a false positive but the compiler has no way to know about it, so initialize the variable to 0. drivers/media/platform/omap3isp/ispqueue.c:445:6: warning: 'vm_page_prot' may be used uninitialized in this function [-Wuninitialized] This is a false positive and the compiler should know better. Use uninitialized_var(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/ispqueue.c')
-rw-r--r--drivers/media/platform/omap3isp/ispqueue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/platform/omap3isp/ispqueue.c b/drivers/media/platform/omap3isp/ispqueue.c
index 6599963cdd9b..e15f01342058 100644
--- a/drivers/media/platform/omap3isp/ispqueue.c
+++ b/drivers/media/platform/omap3isp/ispqueue.c
@@ -366,7 +366,7 @@ static int isp_video_buffer_prepare_pfnmap(struct isp_video_buffer *buf)
366 unsigned long this_pfn; 366 unsigned long this_pfn;
367 unsigned long start; 367 unsigned long start;
368 unsigned long end; 368 unsigned long end;
369 dma_addr_t pa; 369 dma_addr_t pa = 0;
370 int ret = -EFAULT; 370 int ret = -EFAULT;
371 371
372 start = buf->vbuf.m.userptr; 372 start = buf->vbuf.m.userptr;
@@ -419,7 +419,7 @@ done:
419static int isp_video_buffer_prepare_vm_flags(struct isp_video_buffer *buf) 419static int isp_video_buffer_prepare_vm_flags(struct isp_video_buffer *buf)
420{ 420{
421 struct vm_area_struct *vma; 421 struct vm_area_struct *vma;
422 pgprot_t vm_page_prot; 422 pgprot_t uninitialized_var(vm_page_prot);
423 unsigned long start; 423 unsigned long start;
424 unsigned long end; 424 unsigned long end;
425 int ret = -EFAULT; 425 int ret = -EFAULT;