diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-04 06:33:23 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-04 06:33:23 +0000 |
commit | d1bf82421f80c8db6d7f59a38a974fc491736c3d (patch) | |
tree | 4082bdb93701f3b3015cc4b1e0edc53fbfa28535 /linux/drivers/media/video/uvc | |
parent | dabbb6b1c9d6df38c1f140b22303c9e8935bbc38 (diff) | |
download | mediapointer-dvb-s2-d1bf82421f80c8db6d7f59a38a974fc491736c3d.tar.gz mediapointer-dvb-s2-d1bf82421f80c8db6d7f59a38a974fc491736c3d.tar.bz2 |
uvc/uvc_v4l2.c: suppress uninitialized var warning
From: Andrew Morton <akpm@linux-foundation.org>
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 'linux/drivers/media/video/uvc')
-rw-r--r-- | linux/drivers/media/video/uvc/uvc_v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/uvc/uvc_v4l2.c b/linux/drivers/media/video/uvc/uvc_v4l2.c index 0456bbdcd..b5a11eb8f 100644 --- a/linux/drivers/media/video/uvc/uvc_v4l2.c +++ b/linux/drivers/media/video/uvc/uvc_v4l2.c @@ -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; |