Commit 9448025b authored by Hartmut Hackmann's avatar Hartmut Hackmann Committed by Mauro Carvalho Chehab

V4L/DVB (4704): SAA713x: fixed compile warning in SECAM fixup

The variable fixup could be used uninitialized.
Signed-off-by: default avatarHartmut Hackmann <hartmut.hackmann@t-online.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent cf146ca4
...@@ -1820,15 +1820,18 @@ static int video_do_ioctl(struct inode *inode, struct file *file, ...@@ -1820,15 +1820,18 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
break; break;
if (i == TVNORMS) if (i == TVNORMS)
return -EINVAL; return -EINVAL;
if (*id & V4L2_STD_SECAM) { if ((*id & V4L2_STD_SECAM) && (secam[0] != '-')) {
if (secam[0] == 'L' || secam[0] == 'l') if (secam[0] == 'L' || secam[0] == 'l') {
if (secam[1] == 'C' || secam[1] == 'c') if (secam[1] == 'C' || secam[1] == 'c')
fixup = V4L2_STD_SECAM_LC; fixup = V4L2_STD_SECAM_LC;
else else
fixup = V4L2_STD_SECAM_L; fixup = V4L2_STD_SECAM_L;
else } else {
if (secam[0] == 'D' || secam[0] == 'd') if (secam[0] == 'D' || secam[0] == 'd')
fixup = V4L2_STD_SECAM_DK; fixup = V4L2_STD_SECAM_DK;
else
fixup = V4L2_STD_SECAM;
}
for (i = 0; i < TVNORMS; i++) for (i = 0; i < TVNORMS; i++)
if (fixup == tvnorms[i].id) if (fixup == tvnorms[i].id)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment