drm/rockchip: fix error check when getting irq
From: Heiko Stuebner <heiko@...> Date: Fri, 17 Apr 2015 22:08:14 +0200
Commit-Message
platform_get_irq() can return negative error values and we already test for these. Therefore the variable holding this value should be signed to not loose possible error values. Reported-by: David Binderman <dcb314@...> Signed-off-by: Heiko Stuebner <heiko@...> Reviewed-By: Daniel Kurtz <djkurtz@...>
Patch-Comment
changed since v1: - instead of making irq in struct vop signed use a separate local irq int in vop_bind as suggested by Daniel Kurtz drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
Statistics
- 5 lines added
- 4 lines removed