]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[media] max2175: remove an useless comparision
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 10:11:15 +0000 (07:11 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 10:11:15 +0000 (07:11 -0300)
commit8ca00927d61eb4dafe823387f1fb23913ffed5f0
tree2c1ceb002236719b318f5834e5cba97578065e92
parentfbe19d1f060794c001def92a18d3d80ce0083b28
[media] max2175: remove an useless comparision

load is an unsigned integer. So, it is always bigger or equal
to zero, as reported by gcc:

drivers/media/i2c/max2175.c: In function 'max2175_refout_load_to_bits':
drivers/media/i2c/max2175.c:1272:11: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
  if (load >= 0 && load <= 40)
           ^~

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/max2175.c