Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

+1 -1
+1 -1
drivers/media/i2c/max2175.c
··· 1269 1269 static int max2175_refout_load_to_bits(struct i2c_client *client, u32 load, 1270 1270 u32 *bits) 1271 1271 { 1272 - if (load >= 0 && load <= 40) 1272 + if (load <= 40) 1273 1273 *bits = load / 10; 1274 1274 else if (load >= 60 && load <= 70) 1275 1275 *bits = load / 10 - 1;