Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85a21eaf authored by Thierry Reding's avatar Thierry Reding Committed by Alex Deucher
Browse files

drm/radeon: Drop unnecessary unsigned int < 0 check



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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7a11a334
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -759,7 +759,7 @@ u32 radeon_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe)
	u32 count;
	u32 count;
	struct radeon_device *rdev = dev->dev_private;
	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);
		DRM_ERROR("Invalid crtc %u\n", pipe);
		return -EINVAL;
		return -EINVAL;
	}
	}