From bad16a6b22e06b0adf7663543e26caae9916444c Mon Sep 17 00:00:00 2001 From: Ben Skeggs Date: Fri, 20 Mar 2009 10:32:47 +1000 Subject: [PATCH] libdrm/nouveau: remove unneccesary null ptr checks --- libdrm/nouveau/nouveau_bo.c | 6 ++---- 1 file 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); }