Skip to content

Commit

Permalink
drm: store_vblank() is never called with NULL timestamp
Browse files Browse the repository at this point in the history
Remove the NULL 't_vblank' checks from store_vblank() since that will
never happen.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Ville Syrjälä authored and Daniel Vetter committed Sep 24, 2015
1 parent ad1716e commit 1b2eb71
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,11 @@ static void store_vblank(struct drm_device *dev, unsigned int pipe,

assert_spin_locked(&dev->vblank_time_lock);

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

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

0 comments on commit 1b2eb71

Please sign in to comment.