aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-04 07:37:33 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:59:03 -0400
commitf03900d696079fa1e93c91af0e49c55b9b7dd105 (patch)
treee63deaa81e5425f769a0ad293ec3e476bc178758 /drivers/media
parent6fa7dac4b89af2839b69ea1f772fa73b03efdd6c (diff)
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: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/IR/imon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index 27743eb0916d..9ca5e864d16f 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -974,7 +974,7 @@ static void imon_touch_display_timeout(unsigned long data)
974{ 974{
975 struct imon_context *ictx = (struct imon_context *)data; 975 struct imon_context *ictx = (struct imon_context *)data;
976 976
977 if (!ictx->display_type == IMON_DISPLAY_TYPE_VGA) 977 if (ictx->display_type != IMON_DISPLAY_TYPE_VGA)
978 return; 978 return;
979 979
980 input_report_abs(ictx->touch, ABS_X, ictx->touch_x); 980 input_report_abs(ictx->touch, ABS_X, ictx->touch_x);