diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-07 23:11:39 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-07-07 23:11:39 +0100 |
commit | a32694b0f07e35c22dd83bcfb828196d5d86628e (patch) | |
tree | 869f1ac1704668af906c286cdb71ed8c1c05d5ce /src/sna | |
parent | d180c5f5f781f4fa7f747dd7bb8073a20771cd79 (diff) |
sna/dri: Remove redundant NULL check in reference
The buffer has already been dereferenced by this point...
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_dri.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c index b75c46ed..c89a7d24 100644 --- a/src/sna/sna_dri.c +++ b/src/sna/sna_dri.c @@ -316,10 +316,8 @@ static void sna_dri_destroy_buffer(DrawablePtr drawable, DRI2Buffer2Ptr buffer) static void sna_dri_reference_buffer(DRI2Buffer2Ptr buffer) { - if (buffer) { - struct sna_dri_private *private = buffer->driverPrivate; - private->refcnt++; - } + struct sna_dri_private *private = buffer->driverPrivate; + private->refcnt++; } static void damage(DrawablePtr drawable, PixmapPtr pixmap, RegionPtr region) |