summaryrefslogtreecommitdiff
path: root/intel
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-11-02 11:19:21 -0700
committerEric Anholt <eric@anholt.net>2010-11-02 11:19:21 -0700
commit4abb65f95c79c9a2ec2cc1147a753704b5cdd22e (patch)
tree593156a3e4bb3411e059088a9077a6068d53967d /intel
parentf45305c1aaf5d8053b047ff6c4ac177e26ae6d17 (diff)
intel: Remove gratuitous assert on bo_reference.
This couldn't be triggered except by overflow, since there's an assert in unreference to catch the usual failure of over-unreferencing.
Diffstat (limited to 'intel')
-rw-r--r--intel/intel_bufmgr_gem.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index e0d15c46..8b0deaf7 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -351,7 +351,6 @@ drm_intel_gem_bo_reference(drm_intel_bo *bo)
{
drm_intel_bo_gem *bo_gem = (drm_intel_bo_gem *) bo;
- assert(atomic_read(&bo_gem->refcount) > 0);
atomic_inc(&bo_gem->refcount);
}