libdrm/nouveau: remove unneccesary null ptr checks
parent
c37fca4ef6
commit
bad16a6b22
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue