mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-05 06:38:03 +02:00
libdrm/nouveau: remove unneccesary null ptr checks
This commit is contained in:
parent
c37fca4ef6
commit
bad16a6b22
1 changed files with 2 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue