diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-05 07:37:21 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-05 07:37:21 +0000 |
commit | 4ce8ef90769df3644a1eb9fee1b7746dea09e753 (patch) | |
tree | d5037176b2b2f42e7080b9aa32f9f9614a5455fe /linux/drivers/media/video/em28xx | |
parent | 24db565af4ebc0897b57f76e70753dbf5232e52e (diff) | |
download | mediapointer-dvb-s2-4ce8ef90769df3644a1eb9fee1b7746dea09e753.tar.gz mediapointer-dvb-s2-4ce8ef90769df3644a1eb9fee1b7746dea09e753.tar.bz2 |
em28xx/em28xx-core.c: fix use of potentially uninitialized variable
From: Andrew Morton <akpm@linux-foundation.org>
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 'linux/drivers/media/video/em28xx')
-rw-r--r-- | linux/drivers/media/video/em28xx/em28xx-core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/em28xx/em28xx-core.c b/linux/drivers/media/video/em28xx/em28xx-core.c index a0ec1cfbc..952755c8e 100644 --- a/linux/drivers/media/video/em28xx/em28xx-core.c +++ b/linux/drivers/media/video/em28xx/em28xx-core.c @@ -324,7 +324,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) { |