V4L/DVB (11741): zoran: Fix &&/|| typo
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 2 May 2009 20:52:52 +0000 (17:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:59 +0000 (18:20 -0300)
Fix &&/|| typo. `default_norm' can be 0 (PAL), 1 (NTSC) or 2 (SECAM),
the condition tested was impossible.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/zoran/zoran_card.c

index ea6c577..ea9de8b 100644 (file)
@@ -1022,7 +1022,7 @@ zr36057_init (struct zoran *zr)
        zr->vbuf_bytesperline = 0;
 
        /* 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;
        if (default_norm == 0) {
                zr->norm = V4L2_STD_PAL;