[PATCH 11/16] drm/imx: Use unsigned int for CRTC index

Thierry Reding thierry.reding at gmail.com
Thu Sep 24 09:35:33 PDT 2015


From: Thierry Reding <treding at nvidia.com>

The CRTC index can never be negative, so use an unsigned rather than a
signed integer for the loop variable.

Cc: Philipp Zabel <p.zabel at pengutronix.de>
Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 drivers/gpu/drm/imx/imx-drm-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c
index 5ac81180a46d..40950e15b759 100644
--- a/drivers/gpu/drm/imx/imx-drm-core.c
+++ b/drivers/gpu/drm/imx/imx-drm-core.c
@@ -179,7 +179,7 @@ static void imx_drm_disable_vblank(struct drm_device *drm, unsigned int pipe)
 static void imx_drm_driver_preclose(struct drm_device *drm,
 		struct drm_file *file)
 {
-	int i;
+	unsigned int i;
 
 	if (!file->is_master)
 		return;
-- 
2.5.0



More information about the dri-devel mailing list