mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
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>
This commit is contained in:
parent
6fa7dac4b8
commit
f03900d696
@ -974,7 +974,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);
|
||||
|
Loading…
Reference in New Issue
Block a user