]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
media: dvb-frontends: remove extraneous parens
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 18 Dec 2017 17:31:52 +0000 (12:31 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Dec 2017 13:08:47 +0000 (08:08 -0500)
Fixes 2 warnings from Clang about extra parentheses in a conditional,
that might have been meant as assignment.

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/dvb-frontends/drx39xyj/drxj.c
drivers/media/dvb-frontends/drxk_hard.c

index 77d3a44177ba0d2230073d3836dd36fa1ca0d9f7..2f928c4dac94eb8000ad62c1251392375ba07f27 100644 (file)
@@ -11078,7 +11078,7 @@ ctrl_power_mode(struct drx_demod_instance *demod, enum drx_power_mode *mode)
                }
        }
 
-       if ((*mode == DRX_POWER_UP)) {
+       if (*mode == DRX_POWER_UP) {
                /* Restore analog & pin configuration */
 
                /* Initialize default AFE configuration for VSB */
index f59ac2e91c5995fa205d12d428575619323b61e4..19cc84c69b3bcb05aceb1ecb59ae92ba288db03d 100644 (file)
@@ -6062,7 +6062,7 @@ static int init_drxk(struct drxk_state *state)
        u16 driver_version;
 
        dprintk(1, "\n");
-       if ((state->m_drxk_state == DRXK_UNINITIALIZED)) {
+       if (state->m_drxk_state == DRXK_UNINITIALIZED) {
                drxk_i2c_lock(state);
                status = power_up_device(state);
                if (status < 0)