Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1685a6fed210b110ac8abeff24e2ffd1713cb3fb
Commit:     1685a6fed210b110ac8abeff24e2ffd1713cb3fb
Parent:     384b835aed8acf341d99969b58d27434685bdd3d
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Tue Feb 5 07:37:21 2008 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Mon Feb 18 11:15:13 2008 -0300

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/em28xx/em28xx-core.c |    3 ++-
 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 41ed4be..33d323c 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) {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to