summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-02-05 11:37:21 +0100
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-02-18 15:15:13 +0100
commit1685a6fed210b110ac8abeff24e2ffd1713cb3fb (patch)
treef277db447164e112a1654d786524df8025a94692 /drivers/media
parentV4L/DVB (7150): [v4l] convert videbuf_vmalloc_memory to videobuf_vmalloc_memory (diff)
downloadlinux-1685a6fed210b110ac8abeff24e2ffd1713cb3fb.tar.xz
linux-1685a6fed210b110ac8abeff24e2ffd1713cb3fb.zip
V4L/DVB (7156): em28xx/em28xx-core.c: fix use of potentially uninitialized variable
drivers/media/video/em28xx/em28xx-core.c: In function 'em28xx_set_audio_source': drivers/media/video/em28xx/em28xx-core.c:276: warning: 'no_ac97' may be used uninitialized in this function This looks like a genuine bug to me. Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/em28xx/em28xx-core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-core.c b/drivers/media/video/em28xx/em28xx-core.c
index 41ed4be4ae01..33d323cbce7a 100644
--- a/drivers/media/video/em28xx/em28xx-core.c
+++ b/drivers/media/video/em28xx/em28xx-core.c
@@ -273,7 +273,8 @@ int em28xx_set_audio_source(struct em28xx *dev)
static char *enable = "\x08\x08";
static char *disable = "\x08\x88";
char *video = enable, *line = disable;
- int ret, no_ac97;
+ int ret;
+ int no_ac97 = 0;
u8 input;
if (dev->is_em2800) {