Skip to content

Commit

Permalink
V4L/DVB (7156): em28xx/em28xx-core.c: fix use of potentially uninitia…
Browse files Browse the repository at this point in the history
…lized 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>
  • Loading branch information
Andrew Morton authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 384b835 commit 1685a6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/video/em28xx/em28xx-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1685a6f

Please sign in to comment.