aboutsummaryrefslogtreecommitdiff
path: root/radeon/radeon_bo_gem.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-12-21 14:59:48 +1000
committerDave Airlie <airlied@redhat.com>2009-12-21 14:59:48 +1000
commit6de39fc73050a386a39c53e522098a0a784e7ff8 (patch)
treebe22b8339534e92afb53654d1fde75cf791d300b /radeon/radeon_bo_gem.c
parent125994ab30d4f0f126c62fa741ec62a52d69d7a8 (diff)
radeon: fix BO null check, should be in higher level fn
Diffstat (limited to 'radeon/radeon_bo_gem.c')
-rw-r--r--radeon/radeon_bo_gem.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/radeon/radeon_bo_gem.c b/radeon/radeon_bo_gem.c
index baa1d716..9bf119a6 100644
--- a/radeon/radeon_bo_gem.c
+++ b/radeon/radeon_bo_gem.c
@@ -127,9 +127,6 @@ static struct radeon_bo *bo_unref(struct radeon_bo_int *boi)
struct radeon_bo_gem *bo_gem = (struct radeon_bo_gem*)boi;
struct drm_gem_close args;
- if (boi == NULL) {
- return NULL;
- }
if (boi->cref) {
return (struct radeon_bo *)boi;
}