]> err.no Git - linux-2.6/commitdiff
V4L/DVB (8256): uvc/uvc_v4l2.c: suppress uninitialized var warning
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 4 Jul 2008 09:33:23 +0000 (06:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:19:26 +0000 (07:19 -0300)
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>
drivers/media/video/uvc/uvc_v4l2.c

index 0456bbdcd69533975f7fda3dc10125c1a4e27402..b5a11eb8f9fa9eb6cb4ff06840770da621092928 100644 (file)
@@ -1032,7 +1032,7 @@ static int uvc_v4l2_mmap(struct file *file, struct vm_area_struct *vma)
 {
        struct video_device *vdev = video_devdata(file);
        struct uvc_video_device *video = video_get_drvdata(vdev);
-       struct uvc_buffer *buffer;
+       struct uvc_buffer *uninitialized_var(buffer);
        struct page *page;
        unsigned long addr, start, size;
        unsigned int i;