drm/radeon: Drop unnecessary unsigned int < 0 check
authorThierry Reding <treding@nvidia.com>
Mon, 4 Jan 2016 17:19:12 +0000 (18:19 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Jan 2016 17:30:46 +0000 (12:30 -0500)
Unsigned integers can never be negative, so drop this check.

Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_kms.c

index 4fab44e0f36baff7e160e8c747c29d25f45d50b4..414953c46a38fad5327b279883e8ba43fbc193f3 100644 (file)
@@ -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;
        }