summaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2016-02-09 12:43:42 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-03-03 07:30:11 -0300
commit0724745fae8e2ad1da111f38741ed39828a575b6 (patch)
tree95abf76cfc6fe847490454de230bd67c52f5ec25 /drivers/media/v4l2-core
parent1e77d55ac9c089ea8c9e5f2375d1cac3f29a99af (diff)
downloadop-kernel-dev-0724745fae8e2ad1da111f38741ed39828a575b6.zip
op-kernel-dev-0724745fae8e2ad1da111f38741ed39828a575b6.tar.gz
[media] atmel-isi: Fix bad usage of IS_ERR_VALUE
IS_ERR_VALUE() assumes that its parameter is an unsigned long. It can not be used to check if an unsigned int reflects an error. Doing so can result in the following build warning. drivers/media/platform/soc_camera/atmel-isi.c: In function "atmel_isi_probe": include/linux/err.h:21:38: warning: comparison is always false due to limited range of data type drivers/media/platform/soc_camera/atmel-isi.c:1089:6: note: in expansion of macro "IS_ERR_VALUE" If that warning is seen, the return value from platform_get_irq() is not checked for errors. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/v4l2-core')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud