V4L/DVB (10657): [PATCH] V4L: missing parentheses?
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 18 Feb 2009 09:11:10 +0000 (06:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:51 +0000 (12:42 -0300)
Add missing parentheses

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/tuners/tda18271-common.c

index 6fb5b45865690b3a4279e891d09cf43e222a7dee..fc76c30e24f10818f850c3d1b2b49daf441c1b65 100644 (file)
@@ -490,9 +490,9 @@ int tda18271_set_standby_mode(struct dvb_frontend *fe,
                tda_dbg("sm = %d, sm_lt = %d, sm_xt = %d\n", sm, sm_lt, sm_xt);
 
        regs[R_EP3]  &= ~0xe0; /* clear sm, sm_lt, sm_xt */
-       regs[R_EP3]  |= sm    ? (1 << 7) : 0 |
-                       sm_lt ? (1 << 6) : 0 |
-                       sm_xt ? (1 << 5) : 0;
+       regs[R_EP3]  |= (sm    ? (1 << 7) : 0) |
+                       (sm_lt ? (1 << 6) : 0) |
+                       (sm_xt ? (1 << 5) : 0);
 
        return tda18271_write_regs(fe, R_EP3, 1);
 }