Skip to contentSkip to conversation

Staging: dt3155v4l: silence a compiler warning

PATCH New Dan Carpenter 1 participant 1 message Oct 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: dt3155v4l: silence a compiler warning

The '!' is dead code that was left over from a previous version. It causes a compiler warning:
drivers/staging/dt3155v4l/dt3155v4l.c:335:3: warning: value computed
is not used

drivers/staging/dt3155v4l/dt3155v4l.c +1 -1
index 7f5ae2d..5a2ec91 100644
@@ -332,7 +332,7 @@ dt3155_irq_handler_even(int irq, void *dev_id)
 		return IRQ_HANDLED; /* start of field irq */
 	}
 	if ((tmp & FLD_START) && (tmp & FLD_END_ODD))
-		!ipd->stats.start_before_end++;
+		ipd->stats.start_before_end++;
 	/*	check for corrupted fields     */
 /*	write_i2c_reg(ipd->regs, EVEN_CSR, CSR_ERROR | CSR_DONE);	*/
 /*	write_i2c_reg(ipd->regs, ODD_CSR, CSR_ERROR | CSR_DONE);	*/