Commit f03900d6 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

V4L/DVB: 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.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 6fa7dac4
...@@ -974,7 +974,7 @@ static void imon_touch_display_timeout(unsigned long data) ...@@ -974,7 +974,7 @@ static void imon_touch_display_timeout(unsigned long data)
{ {
struct imon_context *ictx = (struct imon_context *)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; return;
input_report_abs(ictx->touch, ABS_X, ictx->touch_x); input_report_abs(ictx->touch, ABS_X, ictx->touch_x);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment