From: Thierry Reding Date: Mon, 4 Jan 2016 17:19:12 +0000 (+0100) Subject: drm/radeon: Drop unnecessary unsigned int < 0 check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85a21eafbc2218ffba59b1dda2ce9d7148bf43d2;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/radeon: Drop unnecessary unsigned int < 0 check Unsigned integers can never be negative, so drop this check. Cc: Christian König Cc: Alex Deucher Signed-off-by: Thierry Reding Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/radeon_kms.c index 4fab44e0f36b..414953c46a38 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -759,7 +759,7 @@ u32 radeon_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe) u32 count; struct radeon_device *rdev = dev->dev_private; - if (pipe < 0 || pipe >= rdev->num_crtc) { + if (pipe >= rdev->num_crtc) { DRM_ERROR("Invalid crtc %u\n", pipe); return -EINVAL; }