]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] drx-j: Fix dubious usage of "&" instead of "&&"
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 9 Mar 2014 12:36:59 +0000 (09:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 11 Mar 2014 09:56:49 +0000 (06:56 -0300)
Fixes the following warnings:
drivers/media/dvb-frontends/drx39xyj/drxj.c:16764:68: warning: dubious: x & !y
drivers/media/dvb-frontends/drx39xyj/drxj.c:16778:68: warning: dubious: x & !y
drivers/media/dvb-frontends/drx39xyj/drxj.c:16797:68: warning: dubious: x & !y

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/drx39xyj/drxj.c

index af3b69ce8c1642ea26f1ca007403a1b6811f2b8d..1e6dab7e5892f8875a069347004e6f05a3320c7b 100644 (file)
@@ -16762,12 +16762,12 @@ static int ctrl_set_oob(struct drx_demod_instance *demod, struct drxoob *oob_par
        case DRX_OOB_MODE_A:
                if (
                           /* signal is transmitted inverted */
-                          ((oob_param->spectrum_inverted == true) &
+                          ((oob_param->spectrum_inverted == true) &&
                            /* and tuner is not mirroring the signal */
                            (!mirror_freq_spect_oob)) |
                           /* or */
                           /* signal is transmitted noninverted */
-                          ((oob_param->spectrum_inverted == false) &
+                          ((oob_param->spectrum_inverted == false) &&
                            /* and tuner is mirroring the signal */
                            (mirror_freq_spect_oob))
                    )
@@ -16780,12 +16780,12 @@ static int ctrl_set_oob(struct drx_demod_instance *demod, struct drxoob *oob_par
        case DRX_OOB_MODE_B_GRADE_A:
                if (
                           /* signal is transmitted inverted */
-                          ((oob_param->spectrum_inverted == true) &
+                          ((oob_param->spectrum_inverted == true) &&
                            /* and tuner is not mirroring the signal */
                            (!mirror_freq_spect_oob)) |
                           /* or */
                           /* signal is transmitted noninverted */
-                          ((oob_param->spectrum_inverted == false) &
+                          ((oob_param->spectrum_inverted == false) &&
                            /* and tuner is mirroring the signal */
                            (mirror_freq_spect_oob))
                    )
@@ -16799,12 +16799,12 @@ static int ctrl_set_oob(struct drx_demod_instance *demod, struct drxoob *oob_par
        default:
                if (
                           /* signal is transmitted inverted */
-                          ((oob_param->spectrum_inverted == true) &
+                          ((oob_param->spectrum_inverted == true) &&
                            /* and tuner is not mirroring the signal */
                            (!mirror_freq_spect_oob)) |
                           /* or */
                           /* signal is transmitted noninverted */
-                          ((oob_param->spectrum_inverted == false) &
+                          ((oob_param->spectrum_inverted == false) &&
                            /* and tuner is mirroring the signal */
                            (mirror_freq_spect_oob))
                    )