[media] lirc_dev: fix variable constant comparisons
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 6 Jul 2016 09:01:23 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 18:25:41 +0000 (15:25 -0300)
commit9675ee5a8e42807ebd33bf4934f235911b5647b0
tree62b80ec047161f173f3d15bd24ddcb6628688194
parent14db9fc2d4e50d95d7586bc6c54029afbcbdf4a1
[media] lirc_dev: fix variable constant comparisons

When comparing a variable with a constant, the comparison should
start from the variable and not from the constant. It's also
written in the human DNA.

Swap the terms of comparisons whenever the constant comes first
and fix the following checkpatch warning:

  WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c