Browse Source

media: dvb-frontends: remove extraneous parens

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>
Nick Desaulniers 7 years ago
parent
commit
7369bbf262

+ 1 - 1
drivers/media/dvb-frontends/drx39xyj/drxj.c

@@ -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 */
 		/* Restore analog & pin configuration */
 
 
 		/* Initialize default AFE configuration for VSB */
 		/* Initialize default AFE configuration for VSB */

+ 1 - 1
drivers/media/dvb-frontends/drxk_hard.c

@@ -6062,7 +6062,7 @@ static int init_drxk(struct drxk_state *state)
 	u16 driver_version;
 	u16 driver_version;
 
 
 	dprintk(1, "\n");
 	dprintk(1, "\n");
-	if ((state->m_drxk_state == DRXK_UNINITIALIZED)) {
+	if (state->m_drxk_state == DRXK_UNINITIALIZED) {
 		drxk_i2c_lock(state);
 		drxk_i2c_lock(state);
 		status = power_up_device(state);
 		status = power_up_device(state);
 		if (status < 0)
 		if (status < 0)