mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
V4L/DVB (4704): SAA713x: fixed compile warning in SECAM fixup
The variable fixup could be used uninitialized. Signed-off-by: Hartmut Hackmann <hartmut.hackmann@t-online.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
cf146ca4c2
commit
9448025be0
@ -1820,15 +1820,18 @@ static int video_do_ioctl(struct inode *inode, struct file *file,
|
||||
break;
|
||||
if (i == TVNORMS)
|
||||
return -EINVAL;
|
||||
if (*id & V4L2_STD_SECAM) {
|
||||
if (secam[0] == 'L' || secam[0] == 'l')
|
||||
if ((*id & V4L2_STD_SECAM) && (secam[0] != '-')) {
|
||||
if (secam[0] == 'L' || secam[0] == 'l') {
|
||||
if (secam[1] == 'C' || secam[1] == 'c')
|
||||
fixup = V4L2_STD_SECAM_LC;
|
||||
else
|
||||
fixup = V4L2_STD_SECAM_L;
|
||||
else
|
||||
} else {
|
||||
if (secam[0] == 'D' || secam[0] == 'd')
|
||||
fixup = V4L2_STD_SECAM_DK;
|
||||
else
|
||||
fixup = V4L2_STD_SECAM;
|
||||
}
|
||||
for (i = 0; i < TVNORMS; i++)
|
||||
if (fixup == tvnorms[i].id)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user