V4L/DVB: media/IR/imon: precendence issue: ! vs ==
authorDan Carpenter <error27@gmail.com>
Tue, 4 May 2010 11:37:33 +0000 (08:37 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:59:03 +0000 (12:59 -0300)
commitf03900d696079fa1e93c91af0e49c55b9b7dd105
treee63deaa81e5425f769a0ad293ec3e476bc178758
parent6fa7dac4b89af2839b69ea1f772fa73b03efdd6c
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>
drivers/media/IR/imon.c