]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - drivers/gpu/drm/radeon/radeon_kms.c
Merge tag 'drm-next-2020-06-02' of git://anongit.freedesktop.org/drm/drm
[thirdparty/linux.git] / drivers / gpu / drm / radeon / radeon_kms.c
index 372962358a18190d321ca685dd59e4dd8efd5246..c5d1dc9618a409f487bb3156c7818bd6e91aa061 100644 (file)
@@ -828,7 +828,7 @@ int radeon_enable_vblank_kms(struct drm_crtc *crtc)
        unsigned long irqflags;
        int r;
 
-       if (pipe < 0 || pipe >= rdev->num_crtc) {
+       if (pipe >= rdev->num_crtc) {
                DRM_ERROR("Invalid crtc %d\n", pipe);
                return -EINVAL;
        }
@@ -854,7 +854,7 @@ void radeon_disable_vblank_kms(struct drm_crtc *crtc)
        struct radeon_device *rdev = dev->dev_private;
        unsigned long irqflags;
 
-       if (pipe < 0 || pipe >= rdev->num_crtc) {
+       if (pipe >= rdev->num_crtc) {
                DRM_ERROR("Invalid crtc %d\n", pipe);
                return;
        }