Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b2eb710 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Daniel Vetter
Browse files

drm: store_vblank() is never called with NULL timestamp



Remove the NULL 't_vblank' checks from store_vblank() since that will
never happen.

Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent ad1716ec
Loading
Loading
Loading
Loading
+5 −7
Original line number Original line Diff line number Diff line
@@ -83,13 +83,11 @@ static void store_vblank(struct drm_device *dev, unsigned int pipe,


	assert_spin_locked(&dev->vblank_time_lock);
	assert_spin_locked(&dev->vblank_time_lock);


	if (t_vblank) {
	/* All writers hold the spinlock, but readers are serialized by
	/* All writers hold the spinlock, but readers are serialized by
	 * the latching of vblank->count below.
	 * the latching of vblank->count below.
	 */
	 */
	tslot = vblank->count + vblank_count_inc;
	tslot = vblank->count + vblank_count_inc;
	vblanktimestamp(dev, pipe, tslot) = *t_vblank;
	vblanktimestamp(dev, pipe, tslot) = *t_vblank;
	}


	/*
	/*
	 * vblank timestamp updates are protected on the write side with
	 * vblank timestamp updates are protected on the write side with