diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-09-14 12:42:13 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-09-15 04:44:26 -0400 |
commit | e01e71fc49d4c95090a04f898a3fe788c652a04b (patch) | |
tree | 902473c7f1a310c9175d2d82d4007aa0318a910d /drivers/gpu/drm/i915/i915_irq.c | |
parent | 442aa277c066cec6cfe8508b3edbdda022b10568 (diff) |
drm/i915: Remove unused 'in_vbl' from i915_get_crtc_scanoutpos()
Commit 1bf6ad622b9b ("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: 1bf6ad622b9b ("drm/vblank: drop the mode argument from drm_calc_vbltimestamp_from_scanoutpos")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170914164213.18461-1-chris@chris-wilson.co.uk
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_irq.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_irq.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c index 003a92857102..e8bb6c644fa4 100644 --- a/drivers/gpu/drm/i915/i915_irq.c +++ b/drivers/gpu/drm/i915/i915_irq.c | |||
@@ -872,7 +872,6 @@ static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, | |||
872 | pipe); | 872 | pipe); |
873 | int position; | 873 | int position; |
874 | int vbl_start, vbl_end, hsync_start, htotal, vtotal; | 874 | int vbl_start, vbl_end, hsync_start, htotal, vtotal; |
875 | bool in_vbl = true; | ||
876 | unsigned long irqflags; | 875 | unsigned long irqflags; |
877 | 876 | ||
878 | if (WARN_ON(!mode->crtc_clock)) { | 877 | if (WARN_ON(!mode->crtc_clock)) { |
@@ -955,8 +954,6 @@ static bool i915_get_crtc_scanoutpos(struct drm_device *dev, unsigned int pipe, | |||
955 | 954 | ||
956 | spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags); | 955 | spin_unlock_irqrestore(&dev_priv->uncore.lock, irqflags); |
957 | 956 | ||
958 | in_vbl = position >= vbl_start && position < vbl_end; | ||
959 | |||
960 | /* | 957 | /* |
961 | * While in vblank, position will be negative | 958 | * While in vblank, position will be negative |
962 | * counting up towards 0 at vbl_end. And outside | 959 | * counting up towards 0 at vbl_end. And outside |