From: Thierry Reding <treding@xxxxxxxxxx> 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@xxxxxxxxxxxxxx> Signed-off-by: Thierry Reding <treding@xxxxxxxxxx> --- 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 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/dri-devel