]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/vblank: remove superfluous pipe check
authorJani Nikula <jani.nikula@intel.com>
Tue, 9 Dec 2025 14:23:11 +0000 (16:23 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 11 Dec 2025 14:55:36 +0000 (16:55 +0200)
Now that the pipe is crtc->pipe, there's no need to check it's within
range.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/ced963542bfb00c2f1a653e9e5f717fccbd25132.1765290097.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/drm_vblank.c

index 1d12836e3d80623ff06bc006fafdabe47f2d83c6..f4d1fe182a4d0c667bc78c79c3aa29b30afbc24e 100644 (file)
@@ -1302,9 +1302,6 @@ void drm_crtc_wait_one_vblank(struct drm_crtc *crtc)
        int ret;
        u64 last;
 
-       if (drm_WARN_ON(dev, pipe >= dev->num_crtcs))
-               return;
-
        ret = drm_vblank_get(dev, pipe);
        if (drm_WARN(dev, ret, "vblank not available on crtc %i, ret=%i\n",
                     pipe, ret))