Skip to content

Commit 99df13b

Browse files
icklerodrigovivi
authored andcommitted
drm/i915: Remove unused 'in_vbl' from i915_get_crtc_scanoutpos()
Commit 1bf6ad6 ("drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos") removed the use of in_vbl, but did not remove the local variable. Do so now. Fixes: 1bf6ad6 ("drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos") Signed-off-by: Chris Wilson <[email protected]> Cc: Ville Syrjälä <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Ville Syrjälä <[email protected]> (cherry picked from commit e01e71f) Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 8c7a758 commit 99df13b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/gpu/drm/i915/i915_irq.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,6 @@ static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
839839
pipe);
840840
int position;
841841
int vbl_start, vbl_end, hsync_start, htotal, vtotal;
842-
bool in_vbl = true;
843842
unsigned long irqflags;
844843

845844
if (WARN_ON(!mode->crtc_clock)) {
@@ -922,8 +921,6 @@ static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
922921

923922
spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags);
924923

925-
in_vbl = position >= vbl_start && position < vbl_end;
926-
927924
/*
928925
* While in vblank, position will be negative
929926
* counting up towards 0 at vbl_end. And outside

0 commit comments

Comments
 (0)