diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-02-05 05:37:21 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-18 09:15:13 -0500 |
commit | 1685a6fed210b110ac8abeff24e2ffd1713cb3fb (patch) | |
tree | f277db447164e112a1654d786524df8025a94692 /drivers | |
parent | 384b835aed8acf341d99969b58d27434685bdd3d (diff) |
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')
-rw-r--r-- | 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 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) | |||
273 | static char *enable = "\x08\x08"; | 273 | static char *enable = "\x08\x08"; |
274 | static char *disable = "\x08\x88"; | 274 | static char *disable = "\x08\x88"; |
275 | char *video = enable, *line = disable; | 275 | char *video = enable, *line = disable; |
276 | int ret, no_ac97; | 276 | int ret; |
277 | int no_ac97 = 0; | ||
277 | u8 input; | 278 | u8 input; |
278 | 279 | ||
279 | if (dev->is_em2800) { | 280 | if (dev->is_em2800) { |