Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1685a6fe authored by Andrew Morton's avatar Andrew Morton Committed by Mauro Carvalho Chehab
Browse files

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 384b835a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {