Skip to contentSkip to conversation

media/IR/imon: precendence issue: ! vs ==

PATCH In review Dan Carpenter 2 participants 2 messages May 4, 2010 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 media/IR/imon: precendence issue: ! vs ==

The original condition is always false because ! has higher precedence than == and neither 0 nor 1 is equal to IMON_DISPLAY_TYPE_VGA.

drivers/media/IR/imon.c +1 -1
index b65c31a..93b5796 100644
@@ -975,7 +975,7 @@ static void imon_touch_display_timeout(unsigned long data)
 {
 	struct imon_context *ictx = (struct imon_context *)data;
 
-	if (!ictx->display_type == IMON_DISPLAY_TYPE_VGA)
+	if (ictx->display_type != IMON_DISPLAY_TYPE_VGA)
 		return;
 
 	input_report_abs(ictx->touch, ABS_X, ictx->touch_x);