From 589b48e495a929d2c0b5c9092f26b3a604f11126 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 25 May 2013 09:40:54 +0200 Subject: [PATCH] wined3d: Remove now useless NULL check (Coverity). --- dlls/wined3d/resource.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c index 0e0678d6274..3d5065299b6 100644 --- a/dlls/wined3d/resource.c +++ b/dlls/wined3d/resource.c @@ -169,8 +169,7 @@ void resource_cleanup(struct wined3d_resource *resource) resource->allocatedMemory = 0; resource->heapMemory = 0; - if (resource->device) - device_resource_released(resource->device, resource); + device_resource_released(resource->device, resource); } void resource_unload(struct wined3d_resource *resource)