Commit b475f4ee authored by Roel Kluin's avatar Roel Kluin Committed by Mauro Carvalho Chehab

V4L/DVB (11741): zoran: Fix &&/|| typo

Fix &&/|| typo. `default_norm' can be 0 (PAL), 1 (NTSC) or 2 (SECAM),
the condition tested was impossible.
Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 223ffe5f
...@@ -1022,7 +1022,7 @@ zr36057_init (struct zoran *zr) ...@@ -1022,7 +1022,7 @@ zr36057_init (struct zoran *zr)
zr->vbuf_bytesperline = 0; zr->vbuf_bytesperline = 0;
/* Avoid nonsense settings from user for default input/norm */ /* Avoid nonsense settings from user for default input/norm */
if (default_norm < 0 && default_norm > 2) if (default_norm < 0 || default_norm > 2)
default_norm = 0; default_norm = 0;
if (default_norm == 0) { if (default_norm == 0) {
zr->norm = V4L2_STD_PAL; zr->norm = V4L2_STD_PAL;
......
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