From: Andrew Morton Date: Tue, 5 Feb 2008 10:37:21 +0000 (-0300) Subject: V4L/DVB (7156): em28xx/em28xx-core.c: fix use of potentially uninitialized variable X-Git-Tag: v2.6.25-rc3~132^2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1685a6fed210b110ac8abeff24e2ffd1713cb3fb;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Mauro Carvalho Chehab --- 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) {