Skip to content

Commit

Permalink
drm/i915: Remove unused 'in_vbl' from i915_get_crtc_scanoutpos()
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ickle authored and rodrigovivi committed Sep 18, 2017
1 parent 8c7a758 commit 99df13b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/i915/i915_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,6 @@ static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe,
pipe);
int position;
int vbl_start, vbl_end, hsync_start, htotal, vtotal;
bool in_vbl = true;
unsigned long irqflags;

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

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

in_vbl = position >= vbl_start && position < vbl_end;

/*
* While in vblank, position will be negative
* counting up towards 0 at vbl_end. And outside
Expand Down

0 comments on commit 99df13b

Please sign in to comment.