[media] v4l: omap3isp: Fix handling platform_get_irq result
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 24 Sep 2015 14:00:12 +0000 (11:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 25 Jan 2016 10:28:41 +0000 (08:28 -0200)
commit514580f99af8eae246820fe324a78087972a7d63
tree95405bc4e622bd39120f96de07da92adf27b408a
parent18ba53f532f2813cb2b278b662c0bb9b7f0295b5
[media] v4l: omap3isp: Fix handling platform_get_irq result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/omap3isp/isp.c