diff options
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/radeon/radeon_bo_gem.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libdrm/radeon/radeon_bo_gem.c b/libdrm/radeon/radeon_bo_gem.c index 76d80e7e..add55db9 100644 --- a/libdrm/radeon/radeon_bo_gem.c +++ b/libdrm/radeon/radeon_bo_gem.c @@ -152,10 +152,7 @@ static int bo_map(struct radeon_bo *bo, int write) int r; void *ptr; - if (bo_gem->map_count++ != 0) { - return 0; - } - if (bo_gem->priv_ptr) { + if (bo_gem->map_count++ != 0 || bo_gem->priv_ptr) { goto wait; } |