aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvc_v4l2.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-07-04 05:33:23 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:19:26 -0400
commit6f80e1b4cda7e184e369c84a8b388882b0233d53 (patch)
tree8f3429835f3c21e66904f2cc1eef997836cdbd78 /drivers/media/video/uvc/uvc_v4l2.c
parent25e69850d1bb315f251c91183b89da44d4f9be23 (diff)
V4L/DVB (8256): uvc/uvc_v4l2.c: suppress uninitialized var warning
drivers/media/video/uvc/uvc_v4l2.c: In function `uvc_v4l2_mmap': drivers/media/video/uvc/uvc_v4l2.c:1035: warning: 'buffer' might be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Laurent Pinchart <laurent.pinchart@skynet.be> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r--drivers/media/video/uvc/uvc_v4l2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c
index 0456bbdcd695..b5a11eb8f9fa 100644
--- a/drivers/media/video/uvc/uvc_v4l2.c
+++ b/drivers/media/video/uvc/uvc_v4l2.c
@@ -1032,7 +1032,7 @@ static int uvc_v4l2_mmap(struct file *file, struct vm_area_struct *vma)
1032{ 1032{
1033 struct video_device *vdev = video_devdata(file); 1033 struct video_device *vdev = video_devdata(file);
1034 struct uvc_video_device *video = video_get_drvdata(vdev); 1034 struct uvc_video_device *video = video_get_drvdata(vdev);
1035 struct uvc_buffer *buffer; 1035 struct uvc_buffer *uninitialized_var(buffer);
1036 struct page *page; 1036 struct page *page;
1037 unsigned long addr, start, size; 1037 unsigned long addr, start, size;
1038 unsigned int i; 1038 unsigned int i;