Skip to content

Commit 04f0aa5

Browse files
committed
drm/vblank: remove superfluous pipe check
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>
1 parent 128d6e6 commit 04f0aa5

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/gpu/drm/drm_vblank.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,9 +1302,6 @@ void drm_crtc_wait_one_vblank(struct drm_crtc *crtc)
13021302
int ret;
13031303
u64 last;
13041304

1305-
if (drm_WARN_ON(dev, pipe >= dev->num_crtcs))
1306-
return;
1307-
13081305
ret = drm_vblank_get(dev, pipe);
13091306
if (drm_WARN(dev, ret, "vblank not available on crtc %i, ret=%i\n",
13101307
pipe, ret))

0 commit comments

Comments
 (0)