diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2009-03-20 10:32:47 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2009-03-20 10:32:47 +1000 |
commit | bad16a6b22e06b0adf7663543e26caae9916444c (patch) | |
tree | e22da8fe355dd49464d517c16084ca7809b9b1b7 /libdrm | |
parent | c37fca4ef678667bcba9c45c6e0a59c8d174c7c5 (diff) |
libdrm/nouveau: remove unneccesary null ptr checks
Diffstat (limited to 'libdrm')
-rw-r--r-- | libdrm/nouveau/nouveau_bo.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libdrm/nouveau/nouveau_bo.c b/libdrm/nouveau/nouveau_bo.c index 860efa14..023c6bed 100644 --- a/libdrm/nouveau/nouveau_bo.c +++ b/libdrm/nouveau/nouveau_bo.c @@ -413,10 +413,8 @@ nouveau_bo_del_cb(void *priv) { struct nouveau_bo_priv *nvbo = priv; - if (nvbo->fence) - nouveau_fence_ref(NULL, &nvbo->fence); - if (nvbo->wr_fence) - nouveau_fence_ref(NULL, &nvbo->wr_fence); + nouveau_fence_ref(NULL, &nvbo->fence); + nouveau_fence_ref(NULL, &nvbo->wr_fence); nouveau_bo_kfree(nvbo); free(nvbo); } |