libdrm/nouveau: remove unneccesary null ptr checks

main
Ben Skeggs 2009-03-20 10:32:47 +10:00
parent c37fca4ef6
commit bad16a6b22
1 changed files with 2 additions and 4 deletions

View File

@ -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);
}